[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>
Hi --
>>>>> "D" == David A Black <dblack@wobblini.net> writes:
Hi --
Hi,
On Tue, 2 Mar 2004 08:44:25 +0900, Yukihiro Matsumoto wrote:
Hi,
On Wednesday, 3 March 2004 at 8:00:09 +0900, Yukihiro Matsumoto wrote:
Hi,
Hi,
On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:
Hi,
On Thu, 4 Mar 2004, Yukihiro Matsumoto wrote:
Hi,
[#2575] Comment football being played... with lib/test/unit.rb — Nathaniel Talbott <nathaniel@...>
[Resent because I accidentally signed it the first time]
[#2577] problem with Net::HTTP in 1.8.1 — Ian Macdonald <ian@...>
Hello,
Hi,
[#2582] One more proc question — Dave Thomas <dave@...>
Sorry about this... :)
Hi,
On Friday, 5 March 2004 at 12:52:15 +0900, Yukihiro Matsumoto wrote:
Hi,
[#2588] Duck typing chapter — Dave Thomas <dave@...>
I've posted a rough first pass at a chapter about duck typing (and
[#2606] Thought about class definitions — Dave Thomas <dave@...>
If we allowed
[#2628] YAML complaint while generating RDoc — Dave Thomas <dave@...>
With the latest CVS, I get
[#2640] patch to tempfile.rb to handle ENAMETOOLONG — Joel VanderWerf <vjoel@...>
[#2644] RDoc proporsal — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hi, rubyists.
[#2646] Problems rdoc'ing cvs... — Hugh Sasse Staff Elec Eng <hgs@...>
I have just done
On Friday, March 12, 2004, 4:15:42 AM, Dave wrote:
On Fri, 12 Mar 2004, Dave Thomas wrote:
[#2661] Pathological slowdown in 1.8 — Ryan Davis <ryand@...>
Hi all,
[#2697] lib/ruby/1.9/yaml.rb:193: [BUG] Segmentation fault — Mauricio Fern疣dez <batsman.geo@...>
Mauricio Fern疣dez wrote:
On Sun, Mar 28, 2004 at 09:42:42AM +0900, why the lucky stiff wrote:
[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>
This patch adds support to Net::POP for doing POP over SSL. Modeled on how
This is v2 of the patch. Cleaned up a bit and added some more docs.
v3 of the patch:
Hi,
I agree that there are a lot of arguments to #start, but I think it is the
On Tue, 30 Mar 2004 16:24:17 +0900, Daniel Hobe wrote:
On Wed, 31 Mar 2004 13:27:31 +0900, Daniel Hobe wrote:
On Tue, Mar 30, 2004 at 04:05:06PM +0900, Minero Aoki wrote:
[#2709] typos in lib/singleton.rb — Ian Macdonald <ian@...>
Hello,
[#2713] more spelling and grammar fixes — Ian Macdonald <ian@...>
Hello,
> Hello,
Hi,
typos in lib/singleton.rb
Hello,
Attached is a patch to fix some spelling errors in the CVS of
lib/singleton.rb.
Best wishes,
Ian
--
Ian Macdonald | In Tulsa, Oklahoma, it is against the law
System Administrator | to open a soda bottle without the
ian@caliban.org | supervision of a licensed engineer.
http://www.caliban.org |
|
Attachments (1)
Index: lib/singleton.rb
[0m===================================================================
RCS file: /src/ruby/lib/singleton.rb,v
retrieving revision 1.21
[34mdiff -u -r1.21 singleton.rb[0m
[31m--- lib/singleton.rb 22 Aug 2003 08:09:58 -0000 1.21[0m
[32m+++ lib/singleton.rb 28 Mar 2004 23:49:05 -0000[0m
[34m@@ -13,7 +13,7 @@[0m
# a == b # => true
# a.new # NoMethodError - new is private ...
#
[31m-# * ``The instance'' is created at instanciation time, in other[0m
[32m+# * ``The instance'' is created at instantiation time, in other[0m
# words the first call of Klass.instance(), thus
#
# class OtherKlass
[34m@@ -44,11 +44,11 @@[0m
#
# * Klass._load(str) - calling Klass.instance()
#
[31m-# * Klass._instanciate?() - returning ``the instance'' or[0m
[32m+# * Klass._instantiate?() - returning ``the instance'' or[0m
# nil. This hook method puts a second (or nth) thread calling
# Klass.instance() on a waiting loop. The return value
# signifies the successful completion or premature termination
[31m-# of the first, or more generally, current "instanciation thread".[0m
[32m+# of the first, or more generally, current "instantiation thread".[0m
#
#
# The instance method of Singleton are
[34m@@ -103,7 +103,7 @@[0m
@__instance__ = nil # failed instance creation
end
end
[31m- elsif _instanciate?()[0m
[32m+ elsif _instantiate?()[0m
Thread.critical = false
else
@__instance__ = false
[34m@@ -144,7 +144,7 @@[0m
end
# waiting-loop hook
[31m- def _instanciate?()[0m
[32m+ def _instantiate?()[0m
while false.equal?(@__instance__)
Thread.critical = false
sleep(0.08) # timeout
[34m@@ -209,7 +209,7 @@[0m
[31m-puts "\nThreaded example with exception and customized #_instanciate?() hook"; p[0m
[32m+puts "\nThreaded example with exception and customized #_instantiate?() hook"; p[0m
Thread.abort_on_exception = false
class Ups < SomeSingletonClass
[34m@@ -220,7 +220,7 @@[0m
end
class << Ups
[31m- def _instanciate?[0m
[32m+ def _instantiate?[0m
@enter.push Thread.current[:i]
while false.equal?(@__instance__)
Thread.critical = false
[34m@@ -247,7 +247,7 @@[0m
end
end
[31m- def instanciate_all[0m
[32m+ def instantiate_all[0m
@enter = []
@leave = []
1.upto(9) {|i|
[34m@@ -270,7 +270,7 @@[0m
end
[31m-Ups.instanciate_all[0m
[32m+Ups.instantiate_all[0m
# results in message like
# Before there were 0 Ups instance(s)
# boom - thread #6 failed to create instance
[34m@@ -293,7 +293,7 @@[0m
end
end
end
[31m-Yup.instanciate_all[0m
[32m+Yup.instantiate_all[0m
puts "\n\n","Customized marshalling"