RE: Method calling

2003-05-31 Thread Jonathan Sillito
Dan, Why is there a callmeth op? Can't we just use a regular invoke as with other subs? Or does the callmeth op do both a find and invoke as an optimization? Jonathan Sillito > -Original Message- > From: Dan Sugalski [mailto:[EMAIL PROTECTED] > > Nope, not objects, but at least it's part

RE: Method calling

2003-05-31 Thread Dan Sugalski
At 9:20 AM -0700 5/30/03, Jonathan Sillito wrote: Dan, Why is there a callmeth op? Can't we just use a regular invoke as with other subs? Or does the callmeth op do both a find and invoke as an optimization? It does a find and invoke, and the callmethcc does a find, cc-capture, and invoke. I'm n

RE: Method calling

2003-05-31 Thread Jonathan Sillito
Thanks Dan. One little picky thing what is the naming convention for ops? find_method (currently in core.ops), call_method, and call_method_cc (or callcc_method?) or findmeth, callmeth, and callmethcc (or callccmeth?) or findmethod, callmethod, and callmethodcc (or callccmeth

Re: Method calling

2003-05-31 Thread Nicholas Clark
I'm not sure if I'm asking a stupid question here, but: On Fri, May 30, 2003 at 08:12:34AM -0400, Dan Sugalski wrote: > We add three ops, findmeth, callmeth and callmethcc. (The latter just > automatically takes a continuation for the following op and stashes > it in P2, while the former assume

RE: Method calling

2003-05-31 Thread Jonathan Sillito
Calling convention says that before a sub/method is invoked: - P0 Holds the object representing the subroutine. - P1 Holds the continuation for the caller, assuming this sub was called with callcc. Otherwise NULL. - P2 Holds the object the sub was called on. (For method calls) Or put another wa

RE: Method calling

2003-06-01 Thread Dan Sugalski
At 9:38 AM -0700 5/30/03, Jonathan Sillito wrote: Thanks Dan. One little picky thing what is the naming convention for ops? Good question--there really isn't one. I've been trying to avoid underscores in names, since it was inconvenient when the assembler was trying to figure out if you were usin

Re: Method calling

2003-06-01 Thread Dan Sugalski
At 8:30 PM +0100 5/30/03, Nicholas Clark wrote: I'm not sure if I'm asking a stupid question here, but: On Fri, May 30, 2003 at 08:12:34AM -0400, Dan Sugalski wrote: You say P2 is a continuation [snip] But you seem to be using P2 like it's the object I'm confused. No, I was. There are three slot