Sujet : Re: Stack vs stackless operation
De : zbigniew2011 (at) *nospam* gmail.com (LIT)
Groupes : comp.lang.forthDate : 26. Feb 2025, 12:29:03
Autres entêtes
Organisation : novaBBS
Message-ID : <ecc97acf8248d38ad42f546beaba307c@www.novabbs.com>
References : 1 2 3 4
User-Agent : Rocksolid Light
If I apply that rule, I wrote an entire 1000+ line BASIC interpreter
using *three* variables (stack frame pointer, partition pointer and a
counter on the number of currently emitted characters on a line - TAB()
remember?).
I didn't create BASIC interpreters, but I'm afraid
just the rather trivial programs can "live" without
handful of variables. For example: how do you create
even modest (screen-oriented) editor without adding
several variables that reflect its state - where the
cursor is at the moment, what's the filename in use,
how are values of user's settings/preferences - all
that - etc. etc.?
--