On Thu, Apr 28, 2005, Brian Sabbey wrote: > > It is possible to implement thunks without them creating their own frame. > They can reuse the frame of the surrounding function. So a new frame does > not need to be created when the thunk is called, and, much like with a > yield statement, the frame is not taken down when the thunk completes > running. The implementation just needs to take care to save and restore > members of the frame that get clobbered when the thunk is running. > > Cells would of course not be required if the thunk does not create its own > frame. Maybe. It's not clear whether your thunks are lexical (I haven't been following the discussion closely). If it's not lexical, how do locals get handled without cells? -- Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/ "It's 106 miles to Chicago. We have a full tank of gas, a half-pack of cigarettes, it's dark, and we're wearing sunglasses." "Hit it."
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4