Re: [stack] Re: Concatenative Hardware
Don Groves <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
On Nov 4, 2007, at 19:25 , Christopher Diggins wrote: >>> QTE and COMP allows you to treat function like stacks, by adding >>> data >>> to them, which you can accesss later by calling CALL. So >>> computationally it is a multi-stack machine. >> >> Could you describe their behaviour a bit more? > > I'll be providing some C code shortly, but here is the brief > description. > > QTE creates a thunk (a nullary function) from a value. The value is > popped from the stack and replaced with a function that always returns > the value. Enlightenment time... I understand the form of this construct but not its essential nature. How does it differ from, and in what way is it more useful than, a constant? -- Don > COMP composes two function pointers to create a new function that > executes the first function then the second function. > > - Christopher > > > > Yahoo! Groups Links > > > >