2021-12-15 05:26:44 I probably asked about this before but. 1) Why is the word being linked not visible until after the definition is done. 2) Is it mentioned in any of the standards? 3) and how do you implement it? 2021-12-15 05:26:59 s/being linked/being defined/ 2021-12-15 05:38:06 so it can refer to a previous word of the same name 2021-12-15 05:38:19 Right 2021-12-15 05:38:26 the standard mentions it but i gotta look it up 2021-12-15 05:38:37 No worries. And how do you prefer to implement it? 2021-12-15 05:38:56 I first did it with a HIDDEN mask that I set, and unset with ; 2021-12-15 05:39:00 Not sure it's the best way though 2021-12-15 05:41:06 jonesforth does that.. sets a hidden flag 2021-12-15 05:41:52 i build a header in `:` but don't link it to the words list until `;` 2021-12-15 05:42:20 when i build the header, i stash the pointer to the header in the `LAST` variable 2021-12-15 05:43:04 then in `;` i use the `LAST` variable to poke the link field into the list 2021-12-15 05:45:15 I see. I use LAST variable to keep track of the tail of the dictionary linked list. It is used by FIND to find the words. So setting LAST right away would make it effectively visible. 2021-12-15 05:45:22 basically `;` does all the work of adding the word to the dictionary 2021-12-15 05:46:23 ah just use a different named variable 2021-12-15 05:47:17 the standard doesn't say you need to keep a pointer to the word you're defining, but in reality you probably do 2021-12-15 05:48:41 i also questioned using a HIDDEN flag :-) 2021-12-15 08:33:32 I also have a var for that 2021-12-15 08:34:12 I'm sure there's some disadvantage I haven't considered 2021-12-15 08:40:50 i moved the add-to-list from : to ; 2021-12-15 08:41:12 hmm i'm gonna check what jonesforth did 2021-12-15 08:45:22 ah okay jonesforth used `LATEST` for both FIND and CREATE 2021-12-15 08:45:31 my method needs another variable 2021-12-15 17:00:56 Started doing AoC finally. I had a little moment of joy when I replaced https://i.imgur.com/GyJm0Sf.png with https://i.imgur.com/kict2R2.png 2021-12-15 17:04:49 is that recursive 2021-12-15 17:10:26 Not really, I just re-used the same name for the word in a way to extend its meaning. 2021-12-15 17:10:52 https://github.com/neuro-sys/advent-of-code-2021