RE: pre-PATCH: functions in languages/scheme

2002-09-26 Thread Dan Sugalski
At 12:04 PM -0700 9/25/02, Jonathan Sillito wrote: It would be nice if parrot provided the lexical scope semantics scheme (and other languages) needs rather than have each language implement their own. I guess this would be Dan's call, but just as another suggestion, could the lexical ops be

Re: pre-PATCH: functions in languages/scheme

2002-09-26 Thread Juergen Boemmels
Jonathan Sillito [EMAIL PROTECTED] writes: It would be nice if parrot provided the lexical scope semantics scheme (and other languages) needs rather than have each language implement their own. I guess this would be Dan's call, but just as another suggestion, could the lexical ops be limited

Re: pre-PATCH: functions in languages/scheme

2002-09-26 Thread Juergen Boemmels
Dan Sugalski [EMAIL PROTECTED] writes: Working on this. If everyone wants to hash out the sort of semantics they're thinking about, we can probably get to closure reasonably fast and get things designed and implemented quickly. My scheme implementation is a working (a little bit hacky but

Re: pre-PATCH: functions in languages/scheme

2002-09-26 Thread Sean O'Rourke
On 26 Sep 2002, Juergen Boemmels wrote: These may be nice but not needed for scheme * get keyed with INTVAL (getting direct to the Hashes) * set keyed with INTVAL;STRING Both get(INTVAL;STRING) and set(INTVAL;STRING) are needed (or at least useful) for accessing hidden lexicals in outer

Re: pre-PATCH: functions in languages/scheme

2002-09-25 Thread Juergen Boemmels
[cc'd to perl6-internals] Jonathan Sillito [EMAIL PROTECTED] writes: [...] If I remember correctly Sean's patch did store the scratchpad with the Sub.pmc, except that I retreived it from the current context's pad_stack. Then when Sub.pmc was invoked it pushed the correct pad on the stack. I

RE: pre-PATCH: functions in languages/scheme

2002-09-25 Thread Jonathan Sillito
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] The current pad_stack handling is very much tied to Sub.pmc. The only way of getting the current scope is creation of a new sub; the only way setting the current pad is invoking this sub. But I didn't used

Re: pre-PATCH: functions in languages/scheme

2002-09-24 Thread Juergen Boemmels
Ups, something went wrong with my last mail, the explaining text was chopped off. Ok here its again. Hi, I just got functions running in scheme. It uses a pre-version of Sean O'Rourkes scratchpad.pmc. (Sean, I had to reimplement some functions to get it compile, did I get them right?) P31

Re: pre-PATCH: functions in languages/scheme

2002-09-24 Thread Sean O'Rourke
On 24 Sep 2002, Juergen Boemmels wrote: I just got functions running in scheme. It uses a pre-version of Sean O'Rourkes scratchpad.pmc. (Sean, I had to reimplement some functions to get it compile, did I get them right?) Hopefully it will be easy to reconcile our different versions (and will