Re: [stack] Re: Concatenative Hardware

"Christopher Diggins" <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <[email protected]>
> > 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.

COMP composes two function pointers to create a new function that
executes the first function then the second function.

- Christopher
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.