At 02:16 PM 7/18/2002 -0600, Jonathan Sillito wrote:
>On Wed, 2002-07-17 at 22:01, Melvin Smith wrote:
> > Subs, co-routines and continuations are at a very limited, but functional
> > state.
> >
> > Basically you can create a PMC with a bytecode address or label
> > and use the call/callco/callcc ops on it.
> >
>
>Subs seem to be broken right now. Here is a pasm file
>
>   set_addr I0, MYSUB
>   new P0, .Sub, I0
>   call
>   end
>
>   MYSUB:
>   print "this is the sub\n"
>   ret

The temporary fix is to do:

new P0, .Sub
set_addr I0, MYSUB
set P0, I0
call


However, in my opinion, this is kludgy.

-Melvin


Reply via email to