Front page | perl.perl6.internals |
Postings from July 2002
Re: Subs?
Thread Previous
|
Thread Next
From:
Melvin Smith
Date:
July 18, 2002 13:30
Subject:
Re: Subs?
Message ID:
5.1.0.14.2.20020718162331.02fefcf8@pop.mindspring.com
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
Thread Previous
|
Thread Next