|
From: pito <pi...@vo...> - 2010-07-04 12:03:38
|
Erich, this is a bad news. It contradicts to what Andy indicated - the height will use THE NEWEST defined sinus. If the height would have used the newest defined sinus I would call it a big plus for forth. There must be I guess a simple mechanism where the newest defined sinus will change all the references in all the other words which call the sinus. If I uplaod a new sinus word to my satellite I would be very happy that all the words will use the new sinus. Pito ----- PŮVODNÍ ZPRÁVA ----- Od: "Erich Waelde" <ew....@na...> Komu: amf...@li... Předmět: Re: [Amforth-devel] Starting with amforth v4 Datum: 4.7.2010 - 13:31:23 > Hello, > > On 07/04/2010 12:46 PM, pito wrote: > > Andy, after I rised the Q I did it directly with > > my dev system. Frankly > > > the way how it works is changing my understanding > > for "interactivity". > > > Basically you cannot delete wrong words so the space > > occupied will grow. > > > Imagine my apollo picosatellite flying in the space > > and I am tweaking > > > the sw in its guidance computer. So I have to have > > at least a chance > > > activate/deactivate specific words. As I've seen > > the forth manual the > > > last definition of a word is valid. So you may have > > many words with > > > same name, however the last one will be used (am > > I right?) for "following" > > > usage. Imagine wordlist: > >> words > > navigate distance position sinus sinus speed height > > sinus .... > > > > > The Q: which sinus word will be used in speed and > > height calculations? > > > Assuming height calls sinus. When height is compiled, > it searches > for sinus in the current wordlist. So it finds > > > navigate distance position sinus sinus speed height > > sinus .... > > ------------------------------------------------------^^^^ > this one. > > HOWEVER, sinus is redefined twice. When position is > compiled, > it will find > > navigate distance position sinus sinus speed height > > sinus .... > > -----------------------------^^^^^ > this one. Same when you call it interactively in this > state > of definitions. > > And redefining sinus will *NOT* change the reference > to > the older version of sinus in height. > > > I'm sure you have consulted > http://home.iae.nl/users/mhx/sf.html > Chapter 9 (under the hood) gives a brief outline, how > dictionary entries are organized. > > > Cheers, > Erich > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |