Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Leopold Toetsch
Sam Ruby wrote: [ PMC method inheritance ] Patch attached. Thanks, applied. leo

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Sam Ruby
Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: It still doesn't make sense to me. Try adding the following line to both fixedpmcarray.pmc and perlint.pmc: METHOD INTVAL inheritme() { return 42; } Ok, that's exactly that part, which currently *is* broken. If you have some time please

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-16 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > It still doesn't make sense to me. Try adding the following line to > both fixedpmcarray.pmc and perlint.pmc: >METHOD INTVAL inheritme() { return 42; } Ok, that's exactly that part, which currently *is* broken. If you have some time please read src/obje

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-15 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > There are two basic classes of methods here. (And classes of classes, > something I'm regretting, and I think we'll redo once I get a handle > on metaclasses and just unify it all)[1] > The first is the vtable method stuff. There's a static single > inher

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-15 Thread Sam Ruby
Dan Sugalski wrote: At 9:33 AM -0400 10/15/04, Sam Ruby wrote: Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: Concrete example: should ResizablePMCArray inherit sort from FixedPMCArray? Yes. But the inheritance should be (and is AFAIK already partially) in the method lookup. But it's n

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-15 Thread Dan Sugalski
At 9:33 AM -0400 10/15/04, Sam Ruby wrote: Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: Concrete example: should ResizablePMCArray inherit sort from FixedPMCArray? Yes. But the inheritance should be (and is AFAIK already partially) in the method lookup. But it's not quite finished. Ob

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-15 Thread Sam Ruby
Leopold Toetsch wrote: Sam Ruby <[EMAIL PROTECTED]> wrote: Concrete example: should ResizablePMCArray inherit sort from FixedPMCArray? Yes. But the inheritance should be (and is AFAIK already partially) in the method lookup. But it's not quite finished. Objects derived from PMCs inherit methods of

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-15 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > I'm assuming the answer is yes, as classes defined via the subclass > opcode seem to inherit non-vtable methods. In fact, I've made a number > of assumptions, any of which could invalidate the attached patch. I've applied the non-inheritance pieces of the pa

Re: [perl #31987] Should predefined pmcs inherit nci methods?

2004-10-15 Thread Leopold Toetsch
Sam Ruby <[EMAIL PROTECTED]> wrote: > Concrete example: should ResizablePMCArray inherit sort from FixedPMCArray? Yes. But the inheritance should be (and is AFAIK already partially) in the method lookup. But it's not quite finished. Objects derived from PMCs inherit methods of the parent, but one

[perl #31987] Should predefined pmcs inherit nci methods?

2004-10-14 Thread via RT
# New Ticket Created by Sam Ruby # Please include the string: [perl #31987] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31987 > Concrete example: should ResizablePMCArray inherit sort from FixedPMCArray? I'm assuming