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

Re: [PATCH] Subs?

Thread Previous | Thread Next
From:
Jonathan Sillito
Date:
July 18, 2002 16:02
Subject:
Re: [PATCH] Subs?
Message ID:
1027033236.2745.53.camel@localhost.localdomain
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
called.

(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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About