Jens Rieks <[EMAIL PROTECTED]> wrote: > Hi, > On Tuesday 09 March 2004 21:17, Leopold Toetsch wrote: >> >> what about: >> >> (retvals) = obj.methodname(...)
> Yes that would be the best solution. I had a cursory look at the IMCC > sources, but found no obvious way to implement it. I'll have a look at it. > Is there a way to get the parent (one should be enough for now) of a > ParrotClass? No. And what about multiple parents? For SI it's simple. But we could return the immediate parent in seach order. > Is it possible to get a ParrotClass if the name is known, without having to > instantiate an object of that type and using the getclass op on it? The C<getclass> opcode does return the class PMC. > If I know how to do that I can add a "__multicall" function that calls > the specified method on all base classes, starting with the root > baseclass. It is usefull for constructor calling, to make sure that > all base classes are initialized in the proper order. This should be done inside objects.c. > jens leo