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 America/New_York, Will Coleda 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 label '__cmd_puts' not found
make: *** [test.pbc] Error 1

I presume I'm missing something obvious?

--
Will "Coke" Coleda will at coleda dot com



--
Will "Coke" Coleda will at coleda dot com




Reply via email to