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 1 Topic 3894 of 4287
Post > Topic >>

Re: A Brief Look at History

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 15, 2008 at 05:05 PM

On Mar 15, 2:14 pm, Jonah Thomas <jethom...@[EMAIL PROTECTED]
> wrote:
> I have the idea that locals would not improve this much. I would still
> have to distribute copies of all needed values to each factor. It would
> be a little easier because I wouldn't have to jockey them in place, I
> could just name them in the preferred order.

So what's the problem with using localized global variables? If,
indeed, the only problem with using localized global variables is the
tedium of writing out all the "DUP @[EMAIL PROTECTED]
 >R !" and "R> !" at the end, that
is definitely something that could be automated, with a kind of:

LOCALIZE{ ... }

format where a stack frame is built with each variable's original
contents under its address in the R-stack, and a count of how many
localized globals on top of that. You'd need to redefine ``:'' to do a
``0 >R'' and ``;'' and ``EXIT'' to check the size of the stack frame
and restore the localized globals if any, but there'd be no problem at
all with factoring that code.

And no special locals namespace, just the ordinary dictionary.
 




 1 Posts in Topic:
Re: A Brief Look at History
Bruce McFarling <agila  2008-03-15 17:05:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Oct 13 3:25:14 CDT 2008.