Am Montag, 13. Oktober 2025, 13:03:00 Mitteleuropäische Sommerzeit schrieb 
Ethan Azariah:
> Argh! Sorry, this whole issue was based on a mistake. I thought vocabulary
> names were defined in the root vocabulary and thus were always available,
> but this is apparently false. When failing, `qxv` was actually being
> defined in the editor vocabulary which wasn't available after `only forth`.
> Moving `only forth` to the beginning of the line didn't help because I
> didn't insert `definitions` before `vocabulary qxv`. The following line
> works correctly no matter the load order:
> 
>     only forth definitions vocabulary qxv also qxv definitions
> 
> I should define `clean` as I have in some previous gforth installations:
>     : clean ( -- ) only forth also definitions ;
> 
> A helper word to create a vocabulary in Forth and immediately start defining
> into it might be a good idea too.
> 
> Did gforth put vocabulary names into Root in the past?

No, never. ONLY sets the search order to Root Root, but the current vocabulary 
is still Forth.

Only definitions

however will put it into Root.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to