Dave Thomas <Dave / PragmaticProgrammer.com> writes: > Jim Menard <jimm / eris.io.com> writes: > > > I have a class name in a string, and I want to create an instance of that > > class. Can I do so without using eval? I'm looking for something like > > Java's "Class.forName(className)" or Smalltalk's "Smalltalk classNamed: > > className". > > I have to say that this concept strikes me as being really very > risky. Why is this risky? I'm trying to build a generic .rthml file that will display lists of objects with some of their attributes. Each class I want to display descends from a common superclass representing a database reference table. I'm building a simple generic database table editor. Thanks for the code. Jim -- Jim Menard, jimm / io.com, http://www.io.com/~jimm/ "No, no, you're not thinking; you're just being logical." -- Niels Bohr