Does TAQOZ have `CREATE ... DOES>` or the equivalent?
AlgoCompSynth
Posts: 1
in Forth
I've looked through the TAQOZ
documentation but I couldn't find CREATE ... DOES>
. Is there an equivalent construct?
Comments
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.
Christof
Yes, I got CREATE DOES> going , which seem to work quite well.
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:-
Cheers, Bob