I thought, one of main ideas behind extra/locals is zero overhead in run-time. Additional retain stacks in general form will be useful only with optimizing compiler support. ">mystack" and "mystack>" should be just as effective as ">r" and "r>". Is it possible with six lines of code without special language features?
On Mon, Apr 7, 2008 at 8:50 PM, Daniel Ehrenberg <[EMAIL PROTECTED]> wrote: > In the XML parser I wrote, I use an explicit stack, but it doesn't > require any special language features. In a dynamically scoped > variable, I hold a vector that can be pushed to, and I have words > defined (push-xml and pop-xml) that manipulate this stack. The whole > thing is either three or six lines of code, depending how you count. > It could be abstracted into some kind of declaration STACK:, but > doesn't require any special language features. > > Dan > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
