Re: `vocabulary` broken?
Bernd Paysan <[email protected]> Mon, 13 Oct 2025 16:11:37 +0200
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <3347328.IDvDuAF1LB@wukong> |
--nextPart13805539.8bMQJbFj6T Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Bernd Paysan <[email protected]> To: Gforth <gforth-mXXj517/[email protected]> Cc: Ethan Azariah <[email protected]> Subject: Re: `vocabulary` broken? Date: Mon, 13 Oct 2025 16:11:37 +0200 Message-ID: <3347328.IDvDuAF1LB@wukong> In-Reply-To: <a69f38ef-fa87-449c-b9a4-51c32a3805c7-fsFgPW9xikU7lZ9V/[email protected]> MIME-Version: 1.0 Am Montag, 13. Oktober 2025, 13:03:00 Mitteleurop=C3=A4ische Sommerzeit sch= rieb=20 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: >=20 > only forth definitions vocabulary qxv also qxv definitions >=20 > I should define `clean` as I have in some previous gforth installations: > : clean ( -- ) only forth also definitions ; >=20 > A helper word to create a vocabulary in Forth and immediately start defin= ing > into it might be a good idea too. >=20 > Did gforth put vocabulary names into Root in the past? No, never. ONLY sets the search order to Root Root, but the current vocabul= ary=20 is still Forth. Only definitions however will put it into Root. =2D-=20 Bernd Paysan "If you want it done right, you have to do it yourself" net2o id: kQusJzA;7*?t=3Duy@X}1GWr!+0qqp_Cn176t4(dQ* https://net2o.de/ --nextPart13805539.8bMQJbFj6T Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQJPBAABCAA5FiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmjtCJkbFIAAAAAABAAO bWFudTIsMi41KzEuMTEsMiwyAAoJEPctlJOTLaBnhMsP/Rz19pKsppN3xuIS0Kx+ G0LynVSfLsIQM97l3Jy+HNbitjO/GPV3z3QOGOw8BdOPvVGzln9PembHlh9j7W1w ecjaGZPSY6LSLlw+CT7SE2VjdTC5GYhwGmdnH4k31UeuLs9NptjeAeHZAatlRmI4 VBn/X3R0kUmm1B8MscnFCQILqO1QzxD0d9CYmB9hghjzXhEkDEDx1M1Nght2nhk7 DlRNv70ygTpJxjuUGSdjHFRvy1zSQGJZupDEGdxIPLhuTbff/fzjtGs4/Cku5jX7 G2BZy9f3JPxItr/c+cmOIZjehymOl3SH4nxZR5wou5I5teTJ7dVyn/F1FTBf0gJR fXGyyyq3elALMWP/HamjEfFZ4JHxHzz0DNEC7dIZwPSPgO6So4a1B6pRCGiJI2/F Z+l+53cNvQFNBnBHcL4JU+7sWtO1uqsbtWf/cb2cO1TWACoInXip7hfM1JUBXKVZ GCi5JKVaja2XDbqgKzf+AaCbO45CB0Q7bn9zaY/1lP0R1GuUE9IrR7J8IQoxLGHG qSwDo4Q7fU9U4zr7sV+UhEnFkR+UehrdTSWu7Kpqo+j5Z394Pd9SyzrMxkVYcc17 YiTcqAE0J/wOv4eyTzqOGxdyAsbqDElTiiVrvfE13U7sdyRtBOFJ7DxylYjSn4Pw gGDJa8cPuLIQ2lO5onmBQs6G =E3LZ -----END PGP SIGNATURE----- --nextPart13805539.8bMQJbFj6T--