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

[perl #15347] [PATCH] add invoke vtable method

Jonathan Sillito
July 22, 2002 10:48
[perl #15347] [PATCH] add invoke vtable method
Message ID:
# New Ticket Created by  Jonathan Sillito 
# Please include the string:  [perl #15347]
# in the subject line of all future correspondence about this issue. 
# <URL: >

(apology: I read the nice tutorial on sending patches after I had
already sent this directly to the list so sorry about the duplication).

The attached patch makes the following changes:

- adds invoke op to core.ops (patch does not remove call and callco)
- adds vtable method 'invoke' to vtable.tbl
- adds simple description (stolen from Dan's email) of the method to
- adds default invoke to classes/default.pmc
- adds an invoke method to classes/sub.pmc
- adds an invoke method to classes/coroutine.pmc

If either the op or the vtable method (or both) should be be named
'call' instead of 'invoke' then let me know and I will rework my stuff
and resubmit the patch.

Next on my list is (next 24 hours or so):

1) remove old call and callco ops (invoke takes care of both) from
2) change examples/assembly/sub.pasm and coroutine.pasm to use invoke
instead of call and callco
3) add some tests

After that I will look into adding a Continuation PMC.

Jonathan Sillito

-- attachment  1 ------------------------------------------------------
url: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About