Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: suggestions for word names? Date: Tue, 18 Feb 2014 18:17:16 -0500 Organization: Aioe.org NNTP Server Lines: 40 Message-ID: References: <131b48e9-d9ae-4ce7-8cb5-3e2f8c4425f0@googlegroups.com> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:28542 On Tue, 18 Feb 2014 08:04:07 -0500, Stefan Mauerhofer wrote: > My additional stack words are: > > nip ( n1 n2 - n2 ) > under ( n1 n2 - n1 n1 n2 ) > tuck ( n1 n2 - n2 n1 n2 ) > drup ( n1 n2 - n1 n1 ) > dip ( n1 n2 - n2 n2 ) > > so nup would be my under. What's the better name? under or nup ? The only other place I've seen them is as Rob Chapman's Stack Quarks, but I'm not as familiar as others here ... Quarks http://clubweb.interbaun.com/~rc/Timbre/ContentPages/Timbre/SQP/StackQuarksPaper.html I think those are equivalent to his, but a few are named differently: UNDER -> NUP DRUP -> DIP DIP -> DRIP As Marcel pointed out, it's convenient to have NIP and TUCK, but the others really aren't needed for Forth. Normally, interpreted Forths only kept one stack item kept in registers, i.e., TOS top-of-stack. If you have two stack items kept in registers, Quarks become convenient to define Forth stack operations in terms of a stack and two registers. However, they aren't generally needed for coding in Forth. Rod Pemberton