In 1.6, when writing an extension which required Data_Wrap_Struct, the
programmer would define the singleton method "new" to handle that. In 1.8, the
scheme seems to be to write an allocate function (to pass to
rb_define_alloc_func) then do the rest of the code in the intialize function.
Indeed, that's what Class#new does now.

So my question is, when writing extensions, is the "old" way of defining the
singleton method "new" deprecated? Are we to use the new allocate/initialize
way now?

--
Shu-yu Guo