Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: Yet another draw of rectangle Date: Wed, 23 Nov 2016 00:01:34 -0800 Organization: A noiseless patient Spider Lines: 21 Message-ID: <8737iiaald.fsf@nightsong.com> References: <6755c77f-2dd0-43cc-af59-91ea3449dbbc@googlegroups.com> <14a2bc75-d574-4103-b6fa-5ff0fedfc63a@googlegroups.com> <87polpbrw3.fsf@nightsong.com> <87r3649c25.fsf@nightsong.com> <2c1337f8-05f8-43e9-8094-e8c015d00ccf@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="825f8a3e05cb60d7eaf5bd226ce645ea"; logging-data="32374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NnolQRyfnJd/ohX0H0Wta" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:QI8bJWzC6KBEzJPyQ6JfOXWzac8= sha1:pQINlElUl12RcnXg6Dv8IJevbwc= Xref: csiph.com comp.lang.forth:52825 "HAA" writes: > The rect problem has been floating around since Leo Brodie posed it as > a 'worst case scenario' in Thinking Forth. You should drop him a line > with your solution :) I found the rectangle discussion (called [BOX] in the book) in the local variables section of chapter 7. He calls them local variables but they're actually globals since I guess Forth back then didn't have what we now call locals. Also, he starts with the 4-parameter line drawing primitive that takes both endpoints, then suggests some alternatives. Basically he doesn't even try for a stack juggling solution. He suggests using variables and also suggests reorganizing the API in a few different ways. So, I doubt the stuff in this thread would interest him much, especially after all these years, and with him no longer involved with Forth afaict. I remember enjoying the book a lot and thinking it was way ahead of its time, so I may re-read it. Thanks for the reminder!