yes, it is true that you cannot both get and set a word with the same variable in your example ":i:" there are many ways around it of course
an old standby is >> test: [false false false] == [false false false] >> i: 2 == 2 >> poke test i true == [false true false] another Gerald C.(?) inspired back in June >> test: [false false false] == [false false false] >> i: 2 == 2 >> do rejoin['test "/" i ": " true] == [false true false] I am sure there are many others. On Wed, 18 Sep 2002, pat665 wrote: > Hi List, > > I think I fall in a very common gotcha. The starting point was: > > test: [ false false false ] > i: 2 > > I wanted to change false to true for the ith position ( [ false false > false ] becoming [ false true false ] ). > My first attemp was: > > test/:i: true > > The result was > > ** Syntax Error: Invalid word -- :i: > ** Near: (line 1) test/:i: true > > I ran thru my Core.pdf, reading every line with a path word inside. I > failed. I was tired. I gave up. Isn't it too bad ? > > Now I have found a solution > > change at test i true > > Does anyone know a better answer ? > Wouldn't it be nice to have a /at refinement for change, giving a more > intuitive (in my eyes) ? > > change/at test i true > > Patrick > > > ________________________________________________________________ > Etudiant: Wanadoo t'offre le Pack eXtense Haut D�bit soit 150,92 euros d'�conomies ! > Et pour 1 euro de plus, re�ois le CD-ROM du jeu Dark Age of Camelot > + 1 mois de jeu en r�seau offert ! > Clique ici : http://www.ifrance.com/_reloc/mail.etudiant > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
