3 ms·
You would probably want to implement your own concept of classes to do this, in which case you wouldn't have to restrict yourself to languages where classes cou
by paulgb 18y ago
You would probably want to implement your own concept of classes to do this, in which case you wouldn't have to restrict yourself to languages where classes could be declared at runtime.
But if you really wanted to use the language's classes, there are languages that support it. Javascript is one. I think Ruby lets you do this too. Python lets you declare classes at runtime, but I don't think it gives you as much flexibility as the former two. Still, any of the three should be powerful enough to do what you want. Scheme will let you do it too.