I've looked through the TAQOZ documentation but I couldn't find CREATE ... DOES>. Is there an equivalent construct?
CREATE ... DOES>
Yes, See in AutoS.fth here https://forums.parallax.com/discussion/174970/p2-taqoz-v2-8-lutlongs-value-type-variables-locals-now-faster#latest
It is by Bob or Peter.
Yes, I got CREATE DOES> going , which seem to work quite well.
pub CREATE ( -- )
HERE 2- 0 REG W!
pub DOES> ( -- )
0 REG W@
As you know, with CREATE DOES>, you can make new, very simple classes of words ( the words between CREATE and DOES> make the internal data and the words between DOES> and ; make a single method for acting on that data ) Once defined, you can make as many objects from that class as you like.
I took the idea further, by adapting Bernd Paysans' Mini-OOF (Object Oriented Forth) for Taqoz.
Here is a very simple demonstration of Mini-OOF programming.
I made several useful examples too:-