At 8:55 AM -0600 8/9/02, Jonathan Sillito wrote: >On Tue, 2002-08-06 at 20:11, Sean O'Rourke wrote: >> On Tue, 6 Aug 2002, Dan Sugalski wrote: >> >> > At 12:57 PM -0600 8/6/02, Jonathan Sillito wrote: >> > >Can a prototyped sub take a variable number of parameters (ie can it >> > >have 'rest' params?). If so, should there be some way for the caller to >> > >specify how many params are being passed in pmc registers? >> > >> > A prototyped sub can take a variable number of params, and there >> > should be a counter somewhere. I thought that was specified, but >> > apparently not. I'll fix that. >> >> I'm guessing this would be: >> >> I1 The number of items pushed onto the stack. > >Though I think what is missing is the number of PMC's passed in >registers.
Yep. I added that to PDD03. Should be in the repository now. > > > >The pdd mentions callcc, but the callcc op seems to be going away >> > >(replaced with invoke on a continuation pmc) ... is that the plan? >> > >> > Callcc needs to stay--its removal is an oversight. >> >> Does it? We can do the same thing (and other, more devious ones) with >> existing ops. From my understanding of pdd03, the exact implementation >> would be this: >> >> # P0 contains a function object >> new P1, .Continuation >> set_addr I4, L1 >> set P1, I4 >> # Setup rest of args >> invoke >> L1: > >I like it. What do you think Dan? Works for me. -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk