From: <an...@ki...> - 2010-07-04 20:31:54
|
Sorry for being a bit stupid What is being celebrated 11.7 ?????? Apologies in advance... On 04/07/10 14:51, pito wrote: > Yes, I've got it Andy, therefore I started this new post to be more precise. > However, I still think it is easy to implement in the amforth compiler > itself: > 1. check whether the new word is not defined already in wordlist > 2. add a new word which "replaces" the old one > 3. change references to the new defined word in the all calls in the > all words in wordlist. > > It will be a big improvement, Matthias can do that easily, and he will > be definately ready with this nice feature for the big celebration on > 11.7. (:-). Pito. > > ----- PŮVODNÍ ZPRÁVA ----- > Od: "Andy Kirby" <an...@ki...> > Komu: "Everything around amforth" <amf...@li...>, > "pito" <pi...@vo...> > Předmět: Re: [Amforth-devel] Words redefiniton and references > Datum: 4.7.2010 - 15:51:07 > >> 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 >>> > > > |