Re: [gforth] ORDER bug

2011-11-17 Thread Anton Ertl
On Mon, Nov 14, 2011 at 01:18:56AM +0100, Bernd Paysan wrote: Am Sonntag, 13. November 2011, 18:41:54 schrieb Josh Grams: Hm, looking at head?, it really looks wrong. Try replacing it with this: : head? ( addr -- f ) \G heuristic check whether addr is a name token; may deliver false

Re: [gforth] ORDER bug

2011-11-13 Thread Josh Grams
OK, I get it now. There's junk in unALLOTted memory up to a certain point; after that it's all zeroes. So after that point, then if you have a wordlist at the end of the dictionary, `head?` thinks it's is followed by a header even though it isn't, and then that causes trouble. So compiling

Re: [gforth] ORDER bug

2011-11-12 Thread Josh Grams
Ah, ok, with some more digging around, I'm guessing it's a false positive in `head?`. Though it happens with VOCABULARY also (that's how I ran into the problem). Is it a bit dodgy in that case also? --Josh