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
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
On Tuesday, Jul 15, 2003, at 06:38 America/New_York, Leopold Toetsch
wrote:
Will Coleda <[EMAIL PROTECTED]> wrote:
Hurm. I tried switching the order of the .subs, which allows it to
compile,
Execution doesn't start in _main or something. It starts at the first
fully parsed .sub.
leo
Sorry if I ga
Will Coleda <[EMAIL PROTECTED]> wrote:
> Hurm. I tried switching the order of the .subs, which allows it to
> compile,
Execution doesn't start in _main or something. It starts at the first
fully parsed .sub.
leo
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 test.pbc test.imc
> error:imcc:store_labels: inter_cs
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 Am