Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: A Brief Loo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3930 of 4160
Post > Topic >>

Re: A Brief Look at History

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 19, 2008 at 07:19 AM

On Mar 18, 11:52 pm, Jonah Thomas <jethom...@[EMAIL PROTECTED]
> wrote:
> > > I suspect there were a couple of variables in the original graphics
> > > that Andrew was quoting.  Again, I don't see that as invalidating
> > > his approach.

> > So introducing more variables is a good thing in Forth?  Interesting
> > concept.

> If we're talking sheer esthetics, I prefer global variables to locals.
> They aren't re-entrant, but I can get by wrthout re-entering DRAW .

> But apart from esthetics, doesn't it make sense to use whatever works?

Using a global variable in this situation is not about esthetics. All
turtle semantics are about a cursor-point and a target-point and
having those as global variables ex****ts that state to all the turtle
primitives that are implemented. A PUSH-TURTLE / POP-TURTLE pair
allows the re-entrant re-use of the global variables at exactly the
point where desired, without stepping on any factoring, and since they
are globals, that can be factored out to a wrapper word and does not
have to be defined in from the outset.
 




 2 Posts in Topic:
Re: A Brief Look at History
Bruce McFarling <agila  2008-03-19 07:19:46 
Re: Forth for the Macintosh (was Re: A Brief Look at History)
Duke Normandin <dukeof  2008-03-24 03:08:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 18 22:26:03 CDT 2008.