On Fri, 25 Apr 2003 10:59:32 +0900, nobu.nokad wrote:

> At Fri, 25 Apr 2003 06:34:24 +0900, Simon Strandgaard wrote:
>> 	char *name_of_class = "test";
> 	                      "Test";

agree

 
> Class name must be a constant name.
> 
>> 	VALUE klass = rb_const_get(rb_cObject, rb_intern(name_of_class));
> 
> Or:
> 	VALUE klass = rb_path2class(name_of_class);
> 
> This can handle nested classes.

Kool! I wasn't aware of this.. 
I will right away add this to my embedding-tutorial :-)

--
Simon Strandgaard