Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.forth Subject: Re: How could have I factored this better? Date: Fri, 20 May 2016 18:34:02 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: <87shxcchyt.fsf@jester.gateway.pace.com> References: <5e60dbda-f34b-4be0-bfac-d32ddc67062f@googlegroups.com> <871t4we4e3.fsf@jester.gateway.pace.com> <87wpmock1u.fsf@jester.gateway.pace.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="52eac348160ce62b68e4635eee7cc854"; logging-data="19792"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/83t2TwsyjlFSDFWDb5aS1" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:jxuIWbzwy8nG11AoPuH3on3M20c= sha1:FxZ2I2gYkFVppW7s2Iz/sxLznVA= Xref: csiph.com comp.lang.forth:47379 "Elizabeth D. Rather" writes: >>> shorter, and avoids the need for code to manage the locals frame. > When you declare locals, a locals fram Do you mean extra code generated by the compiler? In this particular case the locals could go in registers, but either way I don't see a big deal unless we're short of code space or something. > To me, the question of whether to check the row length in stars or > solid-box-stars depends on whether stars might be called from > somewhere else. Reasonable enough. In this case stars appeared intended as a directly usable word rather than a factor of solid-box-stars. But my impression is that Forth programs tend to not use anything except possibly naming conventions to prevent words from being globally usable.