Date: Sun, 14 Jun 2026 12:29:12 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Defining words in more than one step Newsgroups: comp.lang.forth References: <11069n1$3617t$1@dont-email.me> <110bgsa$mivq$1@dont-email.me> <2026Jun11.192802@mips.complang.tuwien.ac.at> <110hfag$2bsrn$1@dont-email.me> <2026Jun12.195246@mips.complang.tuwien.ac.at> <2026Jun12.202222@mips.complang.tuwien.ac.at> <6a2ccb22$1@news.ausics.net> <2026Jun13.084637@mips.complang.tuwien.ac.at> Content-Language: en-GB From: dxf In-Reply-To: <2026Jun13.084637@mips.complang.tuwien.ac.at> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: news.ausics.net Message-ID: <6a2e11f9@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 35 X-Complaints: abuse@ausics.net Path: csiph.com!news.bbs.nz!news.ausics.net!not-for-mail Xref: csiph.com comp.lang.forth:135182 On 13/06/2026 4:46 pm, Anton Ertl wrote: > dxf writes: > >> On 13/06/2026 4:22 am, Anton Ertl wrote: >>> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes: >>> But while we are at it, according to Andrew Haley early Forth had USE >>> with the same functionality as SET-DOES>. > > Actually, he wrote in : > > | That's not wildly different from polyFORTH II, which had USE: > | > | CREATE FOO ... blah ...
USE > | > | USE takes the address of some runtime code and patches it into the > | code field of the most recent definition. I think that syntax is a > | little more pleasant than your above. > > So it's probably like Gforth's SET-EXECUTE (which takes a machine-code > address), not like Gforth's SET-DOES> (which takes an xt). And > polyForthII is not that early. I looked into it, and yes, pF has USE. But it may be of limited use. It's not documented in the manual (polyFORTH ISD-4 dated 1986). I only noticed it from a disassembly. The only info/usage I was able to glean being: : USE ( A -- ) LAST @ @ CFA ! ; : (;CODE) R> USE ; CREATE (PEXPECT) WAIT USE : CODE CREATE HERE USE ASSEMBLER ;