http://rubycentral.com/book/ref_c_module.htm I spoke too soon. At the top of the page: > In the descriptions that follow, the parameter aSymbol refers to a > symbol, which is either a quoted string or a Symbol (such as :name ) Sorry for the spurious post. On Monday, Jun 30, 2003, at 15:33 America/Chicago, John Platte wrote: > On the page you referenced, the entry for const_defined? says it takes > a symbol too, but the example code uses a string argument...!? Same > for const_set. > > On Monday, Jun 30, 2003, at 15:23 America/Chicago, Anders Borch wrote: > >>> A class name is just a constant, so something like >>> a = Module.const_get("Array").new >> >> uhm... why does this work? >> >> I just tested it and to my surprise it worked?! >> >> http://rubycentral.com/book/ref_c_module.html#Module.const_get >> >> says that I need to supply a symbol, why does it accept a string? >> >> is this something that will continue to work in 1.8? (im still using >> 1.6.8 on my winbox and 1.6.7 on my linux box) -- John Platte Principal Consultant, NIKA Consulting http://nikaconsulting.com/ (630) 499 9830 Fax: (630) 566 0655