At 9:40 PM -0500 on 12/8/99, [EMAIL PROTECTED] wrote:
>In a message dated 12/8/99 8:15:10 PM, you wrote:
>
><<
>Yeh, well, consider the temp allocation mess! Each expression will want its
>own temps -- ak!
>
>>>
>
>What's wrong with that if you consider them reuseable after an end-of-line
>token.

In:
        put value(a)+value(b) into c
there are 3 end of lines. From three different calls of the interpreter.

The interpreter is re-entrant, and in order to interpret this it first
calls the parse to compile value(a), then interprets that, stores it to a
temp, calls the parser to compile value(b), then inteprets that, adds that
to the temp and stores the result in c.

When it's three different calls of the same function working on the same
line, it's hard to say 'that's the end of the line'.

And, btw, temps are assigned at compile time.

Reply via email to