From: "Kristoffer Lundén" Date: 2007-03-31T09:46:01+09:00 Subject: Re: Find the fully qualified name of a class from a string On 3/31/07, Nasir Khan wrote:> Anyway, there could be several uses for such a thing. Simplest use case> would be a RAILS like (but not RAILS) situation where a controller is> deployed on a running server which (controller) optionally comes as a string> enveloped in a protocol message, this string is evaled and the controller is> instatiated but the system also needs to maintain meta information including> the name of the controller just deployed, which defaults to the fully> qualified name of the class.> My use case is similar.> Here's one way to capture that info as it's evaled. Not thread-safeas-is. Not even sure if it's useful at all, but I was a bit curious.There's more ways to do this, of course, especially depending on whenyou want to capture this info. str = <