[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Re: Proc initialize method not called under certain circumstances

From: "Berger, Daniel" <Daniel.Berger@...>
Date: 2007-06-28 21:42:49 UTC
List: ruby-core #11549
> -----Original Message-----
> From: John Lam (CLR) [mailto:jflam@microsoft.com] 
> Sent: Thursday, June 28, 2007 3:25 PM
> To: ruby-core@ruby-lang.org
> Subject: Re: Proc initialize method not called under certain 
> circumstances
> 
> 
> So, is it correct to assume that for language constructs that 
> create built-in types like Range, Array, Hash etc that 
> user-defined initialize methods are never called?

Correct. Unfortunately.

To wit:

class String
   def initialize(str)
      puts "Hello John!"
      str
   end
end

s1 = String.new('yo1')
'Hello John!'
=> 'yo1'

s2 = 'yo2'
=> 'yo2'

Personally, I've never liked it. I don't know what Ruby 2 will do.

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.


In This Thread