|
From: Andy K. <an...@ki...> - 2010-07-04 14:04:51
|
I apologise i was'nt very clear the other explanations have been much better. Compilation uses the newest definition in the list. As previously compiled words have the pointers stored at compile time they will always refer to what ever was current in the wordlist at compilation. Cheers andy kirby -- Like a rolling stone ----- Original message ----- > So from all the previous posts - in order to redefine sinus I have to > upload a new word: > > : sinus_redefine > / which defines a new word "sinus" for future compilations > .. > / which iteratively looks up wordlist and changes sinus references in > the all other words in the system so they all will use the new sinus > ... > ; > > than I will get: > > sinus5 sinus_redefine sinus4 navigate distance sinus3 position sinus2 > speed height sinus1 .... > > where sinus5 will be used by all existing words. > (?) > Pito. > > > ----- PŮVODNÍ ZPRÁVA ----- > Od: "pito" <pi...@vo...> > Komu: amf...@li... > Předmět: Words redefiniton and references > Datum: 4.7.2010 - 14:38:27 > > > Hi, as the concept of uploading a new word which redefines > > the old definitions > > of the same word and references to it as well is for > > me important to > > understand let me start this thread. Imagine my satellite > > flying - I > > need to upload a more precise word "sinus" with a higher > > precision. > > I do assume that amforth will put the new sinus as > > the newest word in > > the list and any word which uses sinus will reference > > to this new sinus. > > Let assume following wordlist coming from my onboard > > guidance computer: > > > words > > sinus4 navigate distance sinus3 position sinus2 speed > > height sinus1 .... > > > > The suffix in sinus indicates redefinition index for > > clarity only so > > all the sinuses are word "sinus" in the reality. Sinus4 > > is the newest > > upladed word. The left hand side words are newer. > > > > The navigate word uses the words heigh and position. > > Which sinus will > > be used in height and position words? > > Cheers, > > Pito > > > > > > ------------------------------------------------------------------------------ > 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 |