>>Just to add, you shouldn't need the set procedure part if you'll instantiate your class as
>>
>
>Thanks. In our case we use framework's method Add, which doesn't allow to pass library.
Ah, yes, the whole CodeBook family of frameworks seems to do that. They just create a huge Set Classlib and Set Procedure list out of the pjx (which is in the exe anyway), so you only need the class names, not their locations. But then you really have to do something like what you describe when you want to instantiate from something that isn't included.
>The whole idea is for generating menu on the fly using MereMortals framework.
Data driven, I presume?
>As I said, it was a very nice solution to generate all menu classes on the fly. I was thinking, however, that the class definitions will clatter the memory. I added restoring the original set('procedure') after I've done. It would not remove classes from the memory, right?
Well, it's instantiated, therefore in memory.