MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: MOO into C



dg@dcs.st-and.ac.uk writes:
> 1 + 1 + 1 compiles to:
> 
> 	NUM 1
> 	NUM 1
> 	NUM 1
> 	ADD
> 	ADD
> 
> and 1 + (1 + 1) compiles to
> 
> 	NUM 1
> 	NUM 1
> 	ADD
> 	NUM 1
> 	ADD
> 
> without using opcode tricks, and the decompiler manages to preserve brackets.

Actually, I think you've got these two code snippets swapped; the first
expression compiles to the second opcode sequence and vice-versa.

	Pavel


Follow-Ups: References:

Home | Subject Index | Thread Index