At 12:17 PM +0100 12/3/03, Leopold Toetsch wrote:
Dan Sugalski <[EMAIL PROTECTED]> wrote:

 The code definitely needs some looking at and cleanup. It's not
 perfect and I expect it's flawed in a number of places. I'm just
 happy to get the damn stuff into the repository so the bytecode tests
 can start.

I've put in a first test. Needed some changes to get it running and I'm not outerly sure if its overall correct. Anyway: - ParrotObject inherits from ParrotClass now - move isa to ParrotClass and get it running - move find_method there too - IMHO the new class could have a copy of ParrotObjects vtable and not that of ParrotClass

You're right on the last point--while the ParrotClass vtable gets called to initialize the PMC, the resulting PMC should have a ParrotObject vtable. The current scheme is, well, wrong in that regards.


> *) Objects

Do you have something WRT setting/getting attributes?

I thought we had at least discussed a spec of sorts a while back. I'll go look and see what we talked about and go from there.


> *) Objects with multiple inheritance

Or for 0.2?

Yep.


> *) Exceptions we're happy with

Create an Exception class hierarchy?

I'm not 100% sure I want to go with a real OO style of exceptions, but that might just be the neo-luddite in me.


> *) Events

Need an event-handler thread AFAIK.

Yeah, but not for what I'm considering now--events should be handled in the interpreter that gets them.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to