Melvin Smith <[EMAIL PROTECTED]> wrote:
> At 08:36 AM 10/24/2003 +0200, Leopold Toetsch wrote:
>>
>>Why? A class definition should AFAIK end up in the constant table as a
>>class PMC specifying the inheritance and attributes. So a .class
>>directive is from parsing POV a constant definition, like a string
>>constant.

> I was aiming for a short term kludge to get classes working. Freeze/thaw
> can break my kludge whenever it is done. (Unless you have a secret
> patch ready)

Have a look, what I did with constant Subs. They are "serialized" as
plain text and unpacked from that. I real short term hack, but working
and doing, what's intendend to be done :)

>>We have to rearange all imcc globals anyway - there can't be globals or
>>multi-threading will break horribly.

> Well, Bison C++ parsers are reentrant by default *pokes Dan*.... :)

Its not a problem of the parser alone (which in the meantime BTW has an
interpreter argument), all the other globals like the SymReg hash.
Please imagin whats goin' on, when two threads start compiling PIR code.

> -Melvin

leo

Reply via email to