[Vm-dev] Re: [Cog] Problems with generating code (initialization of options)

Igor Stasenko siguctua at gmail.com
Wed Jun 29 18:21:06 UTC 2011

i'm still fighting with initialization.

This time is with pool vars.
The problem is that some pool vars are initialized _after_ being added
to code generator (which converts them to TDefineNode)
so, in debugger i was confused (and thought it is some bug of compiler)
that variable name is
and when i print it , it shows -24
but actual TDefineNode value is nil.

So, what happens is that class pool vars values are read and converted
into TDefineNode _before_ these vars are properly initialized,
which of course leads to errors when generating code.

Eliot, could you check the initialization procedure?

Here are image with preloaded vmmaker (its fresh with just loaded packages):

in workspace do:
StackMacOSConfig generateWithSources

and you will see the error.

Or maybe i doing it wrong (using wrong entry point to vmmaker)?

Best regards,
Igor Stasenko AKA sig.

More information about the Vm-dev mailing list