[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto 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

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

typos in lib/singleton.rb

From: Ian Macdonald <ian@...>
Date: 2004-03-28 23:52:03 UTC
List: ruby-core #2709
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)

singleton.diff (2.75 KB, text/x-diff)
Index: lib/singleton.rb
===================================================================
RCS file: /src/ruby/lib/singleton.rb,v
retrieving revision 1.21
diff -u -r1.21 singleton.rb
--- lib/singleton.rb	22 Aug 2003 08:09:58 -0000	1.21
+++ lib/singleton.rb	28 Mar 2004 23:49:05 -0000
@@ -13,7 +13,7 @@
 #    a == b   # => true
 #    a.new    #  NoMethodError - new is private ...
 #
-# *  ``The instance'' is created at instanciation time, in other
+# *  ``The instance'' is created at instantiation time, in other
 #    words the first call of Klass.instance(), thus
 #
 #    class OtherKlass
@@ -44,11 +44,11 @@
 #
 # *  Klass._load(str)  -  calling Klass.instance()
 #
-# *  Klass._instanciate?()  -  returning ``the instance'' or
+# *  Klass._instantiate?()  -  returning ``the instance'' or
 #    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
-#    of the first, or more generally, current "instanciation thread".
+#    of the first, or more generally, current "instantiation thread".
 #
 #
 # The instance method of Singleton are
@@ -103,7 +103,7 @@
           @__instance__ = nil #  failed instance creation
         end
       end
-    elsif  _instanciate?()
+    elsif  _instantiate?()
       Thread.critical = false    
     else
       @__instance__  = false
@@ -144,7 +144,7 @@
     end
     
     # waiting-loop hook
-    def _instanciate?()
+    def _instantiate?()
       while false.equal?(@__instance__)
         Thread.critical = false
         sleep(0.08)   # timeout
@@ -209,7 +209,7 @@
 
 
 
-puts "\nThreaded example with exception and customized #_instanciate?() hook"; p
+puts "\nThreaded example with exception and customized #_instantiate?() hook"; p
 Thread.abort_on_exception = false
 
 class Ups < SomeSingletonClass
@@ -220,7 +220,7 @@
 end
   
 class << Ups
-  def _instanciate?
+  def _instantiate?
     @enter.push Thread.current[:i]
     while false.equal?(@__instance__)
       Thread.critical = false
@@ -247,7 +247,7 @@
     end
   end
   
-  def instanciate_all
+  def instantiate_all
     @enter = []
     @leave = []
     1.upto(9) {|i|  
@@ -270,7 +270,7 @@
 end
 
 
-Ups.instanciate_all
+Ups.instantiate_all
 # results in message like
 # Before there were 0 Ups instance(s)
 # boom - thread #6 failed to create instance
@@ -293,7 +293,7 @@
     end
   end
 end
-Yup.instanciate_all
+Yup.instantiate_all
 
 
 puts "\n\n","Customized marshalling"

In This Thread

Prev Next