newsub imcc compilation issue.

2003-07-15 Thread Will Coleda
Given the following example: % cat test.imc .sub _MAIN .local sub command_sub newsub command_sub, .Sub, __cmd_puts .end .sub __cmd_puts print whee\n .end %../../../parrot -o test.pbc test.imc error:imcc:store_labels: inter_cs label '__cmd_puts' not found make: *** [test.pbc] Error 1 I

Re: newsub imcc compilation issue.

2003-07-15 Thread Will Coleda
Hurm. I tried switching the order of the .subs, which allows it to compile, but then running it seems to print whee forever. This doesn't seem right. I'd have expected this program to not actually output anything - I just create the .Sub, not invoke it... On Tuesday, Jul 15, 2003, at 00:54

Re: newsub imcc compilation issue.

2003-07-15 Thread Will Coleda
On Tuesday, Jul 15, 2003, at 06:36 America/New_York, Leopold Toetsch wrote: Will Coleda [EMAIL PROTECTED] wrote: Given the following example: % cat test.imc .sub _MAIN .local sub command_sub newsub command_sub, .Sub, __cmd_puts .end .sub __cmd_puts print whee\n .end %../../../parrot -o

Re: newsub imcc compilation issue.

2003-07-15 Thread Leopold Toetsch
Will Coleda [EMAIL PROTECTED] wrote: But, why did it compile one way and not the other? And why would the program with the subs switched print out whee indefinitely? I would expect it to print whee once, then create a sub object, then die. It did compile, because the label was known. And: $