Re: [Amforth] CVARIABLE

2013-03-21 Thread Matthias Trute
Hi Wis, > It may be a good practice to prefix any "cvariable" name with a > mnemonic string (e.g., "c_") to help avoid the troublesome behavior IIRC it is called Hungarian Notation. I'll add a link to the wikipedia article to the recipe. Matthias

Re: [Amforth] wordlists empowered

2013-03-21 Thread Matthias Trute
Hi Enoch, > In the best Forth tradition let this "autoscope" be initially a NOP and > allow the programmer to introduce whatever naming scheme he/she desires > via a subsequent IS. A better place for such a hook would be (CREATE) (same asm file). And the default should be the standard behaviour

Re: [Amforth] wordlists empowered

2013-03-21 Thread Erich Waelde
Hi, On 03/20/2013 11:29 PM, Enoch wrote: > Hello AmForth-ers: > > Did any of you put "wordlists" into a good use? yes. I use this to create a separate wordlist, which is used to parse a special source code structure. I need a special wordlist, because I need to *temporarily* "overload" the meani

Re: [Amforth] wordlists empowered

2013-03-21 Thread Matthias Trute
Hi, > Recognizers would be the way to go, I think. Thats an interesting point. Until now, recognizers are not considered part of the *compiler*, but part of the (outer) *interpreter*. That means, they are used to find the proper meaning of an *already defined* word, but they are not active *duri

Re: [Amforth] CVARIABLE

2013-03-21 Thread Enoch
Matthias Trute writes: > Hi Wis, > >> It may be a good practice to prefix any "cvariable" name with a >> mnemonic string (e.g., "c_") to help avoid the troublesome behavior > > IIRC it is called Hungarian Notation. I'll add a link > to the wikipedia article to the recipe. But Leo Brodie is defin

Re: [Amforth] wordlists empowered

2013-03-21 Thread Enoch
Erich Waelde writes: > Hi, > > On 03/20/2013 11:29 PM, Enoch wrote: >> Hello AmForth-ers: >> >> Did any of you put "wordlists" into a good use? > > yes. I use this to create a separate wordlist, which > is used to parse a special source code structure. I need > a special wordlist, because I need

Re: [Amforth] CVARIABLE

2013-03-21 Thread Michael Kalus
Hi. What about mnemonic conventions like .s .r .line ." xxx" or key? ?DO and such? Don't we already use such "unwritten laws"? Michael Am 21.03.2013 um 21:24 schrieb Enoch: > Matthias Trute writes: > >> Hi Wis, >> >>> It may be a good practice to prefix any "cvariable" name with

Re: [Amforth] CVARIABLE

2013-03-21 Thread Enoch
Hello Michael, "Michael Kalus" writes: > What about mnemonic conventions like > >.s .r .line ." xxx" > > or > > key? ?DO > > and such? Don't we already use such "unwritten laws"? Wis was talking about giving an appropriate name to what cvariable *creates*. There is indeed the Hungarian