From: David Alan Black Date: 2001-10-28T22:49:31+09:00 Subject: [ruby-talk:23680] Re: ref. constructors and new (was: Re: class Foo does not call Class.new?) Hello -- On Fri, 26 Oct 2001, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:23360] Re: class Foo does not call Class.new?" > on 01/10/26, David Alan Black writes: > > |> No. But in 1.7.1, I defined something I call "allocation framework", > |> which is > |> > |> * basically, no "new" overriding (that allows your Class#new trick > |> work in many cases). > | > |Is this going to apply to [] not using Array.new, and "" not using > |String.new? > > They now use Array.allocate and String.allocate respectively. OK... I guess that the [] and "" constructors still will not use "new"? I'm just wondering because if they did use new, I think I could make Ruby Behaviors a lot better :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav