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

[PATCH] add invoke vtable method

Thread Previous | Thread Next
Jonathan Sillito
July 22, 2002 10:06
[PATCH] add invoke vtable method
Message ID:
On Fri, 2002-07-19 at 16:36, Melvin Smith wrote:
> Send me a complete patch and I'll put it in. I might rename the
> op to 'call'.

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.

I had a small patch ready for docs/core_ops.pod, but I see that the file
has been removed, so now I am not sure where to put the description of
the invoke op. 

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

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