From: nobu.nokada@... Date: 2002-04-24T18:02:26+09:00 Subject: Re: building extensions-- new vs initialize Hi, At Tue, 23 Apr 2002 23:55:28 +0900, Michal Rokos wrote: > > In general, redefinition of "new" will be deprecated in 1.8. > > Instead, you have to do are: > > Is there any documentation about new features and needs? AFIK, the best documentation is the source. And a discussion in ruby-dev. > > Although 3 and 4 are not necessary, I recommend them. I hope > > rough/ext/stringio.c to be an example. > > As a sidenote: I noticed 1 miss while reading your source. This > illustrates the miss: Thank you. I could reproduce with just s = StringIO.allocate; GC.start With allocation framework, uninitialized objects can be made easily, and I forgot dmark() might be called with NULL. -- Nobu Nakada