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

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

From:
Jonathan Sillito
Date:
July 22, 2002 10:48
Subject:
[perl #15347] [PATCH] add invoke vtable method
Message ID:
rt-15347-31006.1.17577872219911@perl
# New Ticket Created by  Jonathan Sillito 
# Please include the string:  [perl #15347]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=15347 >


(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
docs/pdd/pdd02_vtables.pod
- 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
core.ops
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: http://rt.perl.org/rt2/attach/31006/25983/f9ba73/invoke.patch




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