Hi all,

Just a quick question -- is the following sequence the correct
way to create a Ruby object from C?

  NEWOBJ(obj, c-type)  -- allocate memory for an object
  OBJSETUP(obj, class, T_class); -- set appropriate flags
  rb_obj_call_init(obj, argc, argv); -- call initialize

There was some discussion a while back on whether *every* class called 
initialize or not, how did that end up?  It would apper from the
current code that most of the built-in classes *do not* call
an initialize method.

Many thanks!

/\ndy

--
Andrew Hunt, The Pragmatic Programmers, LLC.
Innovative Object-Oriented Software Development
web:   http://www.pragmaticprogrammer.com   email: andy / pragmaticprogrammer.com
--
Our New Book: "The Pragmatic Programmer" Published by Addison-Wesley Oct 1999
              (see www.pragmaticprogrammer.com/ppbook)
--