develooper Front page | perl.perl6.internals | Postings from July 2002

Re: [PATCH] Subs?

Thread Previous | Thread Next
Jonathan Sillito
July 18, 2002 16:02
Re: [PATCH] Subs?
Message ID:
On Thu, 2002-07-18 at 14:27, Melvin Smith wrote:
> The temporary fix is to do:
> new P0, .Sub
> set_addr I0, MYSUB
> set P0, I0
> call

Attached are three small patches, two of them change example files
(examples/assembly/coroutine.pasm and examples/assembly/sub.pasm)
to use this fix that Melvin mentioned.

The third is a fix for a simple bug in coroutine.pmc: Parrot_Coroutine
was being cast to a Parrot_Sub which caused a seg fault when callco was

(This is my first attempt at sending patches to the list, so any
comments about how this should really be done would be appreciated.)

Jonathan Sillito

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About