Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #9163
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | JennyB <jennybrien@googlemail.com> |
| Newsgroups | comp.lang.forth |
| Subject | Re: CASE comparison values |
| Date | Mon, 23 Jan 2012 09:11:39 -0800 (PST) |
| Organization | http://groups.google.com |
| Lines | 8 |
| Message-ID | <32096725.1413.1327338699800.JavaMail.geo-discussion-forums@vbhn11> (permalink) |
| References | <dedb18b4-3a6e-4012-b0bd-ff017e5bdd1e@a8g2000pbi.googlegroups.com> |
| Reply-To | comp.lang.forth@googlegroups.com |
| NNTP-Posting-Host | 212.159.59.80 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1327338700 13046 127.0.0.1 (23 Jan 2012 17:11:40 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Mon, 23 Jan 2012 17:11:40 +0000 (UTC) |
| In-Reply-To | <dedb18b4-3a6e-4012-b0bd-ff017e5bdd1e@a8g2000pbi.googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=212.159.59.80; posting-account=pe0d8AkAAADONuicQESwvPXuIt5O5Ll1 |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.forth:9163 |
Show key headers only | View raw
Literals and constants are known at compile time, the results of expressions are not. If you avoid the latter then a CASE statement can be implemented behind the scenes as a jump table, otherwise it has to be equivalent to a nested IF ... ELSE, where each alternative has to be tested in turn until a match is found. In practice, x2 would almost always be known at compile time. I can't think of offhand of a useful CASE where it is not.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CASE comparison values Percy <percival.andrews@gmail.com> - 2012-01-23 05:32 -0800
Re: CASE comparison values Brad <hwfwguy@gmail.com> - 2012-01-23 07:57 -0800
Re: CASE comparison values Aleksej Saushev <asau@inbox.ru> - 2012-01-23 22:23 +0400
Re: CASE comparison values JennyB <jennybrien@googlemail.com> - 2012-01-23 09:11 -0800
Re: CASE comparison values stephenXXX@mpeforth.com (Stephen Pelc) - 2012-01-23 18:38 +0000
Re: CASE comparison values alberto pasquale <alberto@hal-pc.org> - 2012-01-23 11:42 -0800
Re: CASE comparison values Percy <percival.andrews@gmail.com> - 2012-01-23 14:58 -0800
Re: CASE comparison values "Elizabeth D. Rather" <erather@forth.com> - 2012-01-23 13:41 -1000
Re: CASE comparison values Brad <hwfwguy@gmail.com> - 2012-01-23 19:20 -0800
Re: CASE comparison values "Peter Knaggs" <pjk@bcs.org.uk> - 2012-01-24 10:03 +0000
csiph-web