Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: unexpected +LOOP behavior Date: Wed, 27 May 2015 17:32:22 -0400 Organization: Aioe.org NNTP Server Lines: 23 Message-ID: References: <80773739-ddd7-4a06-9200-9d7145d0f492@googlegroups.com> <763a0671-2f81-4a26-aa7b-99aa856cfdcb@googlegroups.com> <5561b9b6$0$2868$e4fe514c@news2.news.xs4all.nl> <55623fa0$0$2821$e4fe514c@news2.news.xs4all.nl> <2015May27.111505@mips.complang.tuwien.ac.at> <5566258f$0$2923$e4fe514c@news2.news.xs4all.nl> NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; 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:39364 On Wed, 27 May 2015 16:14:11 -0400, Hans Bezemer wrote: > I've always stated I think it is a great lack in Forth, we > don't have C equivalents of & and && (or | vs. ||). What would your definitions be for those? E.g., this is probably bad Forth, yes? (FYI, untested.) : && 0= 0= SWAP 0= 0= AND ; : || 0= 0= SWAP 0= 0= OR ; How about? (Also, untested.) : && 0= SWAP 0= OR 0= ; : || 0= SWAP 0= AND 0= ; Rod Pemberton -- If fewer guns reduced murders, how does one explain Moscow, Chicago, New York, and South Africa?