From: David Vallner Date: 2006-01-13T07:08:48+09:00 Subject: Re: how can I give a name to an anonymous class On Thu, 12 Jan 2006 17:48:35 +0100, Christian Neukirchen wrote: > > Sorry. I really wonder what I was thinking when I wrote that. > It has to be like that, of course: > > Object.const_set(className.to_sym, genClass) > > This allows for passing of strings and symbols. (And Fixnums, oh well.) > Hoolay! Look, mom, no type coercion! The little Java demons in the back of my skull cackle with glee at yet another potential obscure bug avoided. (Happily ignoring any potential obscure bugs introduced, of course). David Vallner