Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29823
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: [OT] Re: local constants with switch |
| Date | Sat, 23 Aug 2014 15:22:14 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 30 |
| Message-ID | <slrnlvhcd6.fp3.avl@login.logic.tuwien.ac.at> (permalink) |
| References | <slrnlukhpi.fp3.avl@login.logic.tuwien.ac.at> <0d3ba8f9-586e-428f-9982-15b4c4da4690@googlegroups.com> <slrnlut96n.fp3.avl@login.logic.tuwien.ac.at> <tlr5v9dbqdlbi0pqo43pnapptb8akcroe3@4ax.com> <slrnlvbume.fp3.avl@login.logic.tuwien.ac.at> <rbtwwg9my3or.ismdzx8ghbbp$.dlg@40tude.net> <lt5eir$c5p$1@dont-email.me> <slrnlvchlq.fp3.avl@login.logic.tuwien.ac.at> <lt6dgc$hk0$1@dont-email.me> <53f8828e$0$2885$e4fe514c@news2.news.xs4all.nl> |
| Reply-To | avl@logic.at |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sat, 23 Aug 2014 15:22:14 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="7fd0c836d94caf9f0b88d96117d7c68e"; logging-data="27538"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184LOSd94OAU0whzzuVpjH+" |
| User-Agent | slrn/pre1.0.0-18 (Linux) |
| Cancel-Lock | sha1:ifnLjQhwqdJPCzwPE0+gcquArzE= |
| Xref | csiph.com comp.lang.java.programmer:29823 |
Show key headers only | View raw
Silvio <silvio@internet.com> wrote: > On 08/22/2014 05:30 AM, Joshua Cranmer đ§ wrote: >> On 8/21/2014 2:21 PM, Andreas Leitgeb wrote: >>> I remember "constants" in C as preprocessor symbols #define'd to >>> some literal value. >> Off-topic, but great segue to the legendary preprocessor macro: >> /* snigger snigger */ >> #define true false > I had a friend debug a program for over two hours after I put > #define while if > in his stdio.h after he had put a semicolon in column 500 after the > closing parenthesis of a for loop of mine. I caught that within minutes > but felt sorry for him after a while and gave it up. :-) Apparently, your friend didn't know about "cc -E" ... I guess, in Java one can be a jerk, too, especially with some \u00..'ery: e.g. to interrupt a big block-comment and import some looks.like.System hidden in the usual license-legalese block that nobody ever reads. I'd guess that even most syntax-highlighting editors wouldn't "notice" (and thus reflect in color) that. /* ... must not be used while taking a bath in a tank of eels while * on an oil rig ... blah yadda ... (+50 more such lines) *\u002F import com.company \u002e java.lang.System \u003B \u002F* * (50 more lines of yadda blah */ Eclipse shows it all green, but the compiler of course sees it.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-12 16:56 +0000
Re: local constants with switch Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-08-12 20:30 +0300
Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-12 21:15 +0000
Re: local constants with switch Silvio <silvio@internet.com> - 2014-08-12 23:20 +0200
Re: local constants with switch Silvio <silvio@internet.com> - 2014-08-12 23:22 +0200
Re: local constants with switch Lew <lewbloch@gmail.com> - 2014-08-15 15:22 -0700
Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-16 00:24 +0000
Re: local constants with switch Roedy Green <see_website@mindprod.com.invalid> - 2014-08-18 23:46 -0700
Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-21 13:57 +0000
Re: local constants with switch Joerg Meier <joergmmeier@arcor.de> - 2014-08-21 18:52 +0200
Re: local constants with switch Mike Amling <mamling@chaff.us> - 2014-08-21 13:19 -0500
Re: local constants with switch Joerg Meier <joergmmeier@arcor.de> - 2014-08-21 22:41 +0200
[OT] Re: local constants with switch Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-08-21 14:42 -0400
Re: [OT] Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-21 19:21 +0000
Re: [OT] Re: local constants with switch Joshua Cranmer đ§ <Pidgeot18@verizon.invalid> - 2014-08-21 22:30 -0500
Re: [OT] Re: local constants with switch Silvio <silvio@internet.com> - 2014-08-23 14:01 +0200
Re: [OT] Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-23 15:22 +0000
Re: [OT] Re: local constants with switch Arne VajhĂžj <arne@vajhoej.dk> - 2014-08-23 22:12 -0400
Re: local constants with switch Jim Gibson <jimsgibson@gmail.com> - 2014-08-21 17:04 -0700
[OT] Re: local constants with switch Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-08-21 20:50 -0400
Re: [OT] Re: local constants with switch Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-22 11:48 +0000
Re: local constants with switch Joerg Meier <joergmmeier@arcor.de> - 2014-08-16 01:18 +0200
Re: local constants with switch Arne VajhĂžj <arne@vajhoej.dk> - 2014-08-15 22:44 -0400
Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-16 09:01 +0000
Re: local constants with switch Joerg Meier <joergmmeier@arcor.de> - 2014-08-16 12:08 +0200
Re: local constants with switch Arne VajhĂžj <arne@vajhoej.dk> - 2014-08-16 20:39 -0400
Re: local constants with switch Joerg Meier <joergmmeier@arcor.de> - 2014-08-17 13:08 +0200
Re: local constants with switch Joerg Meier <joergmmeier@arcor.de> - 2014-08-16 12:07 +0200
Re: local constants with switch Arne VajhĂžj <arne@vajhoej.dk> - 2014-08-15 22:42 -0400
Re: local constants with switch Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-16 09:17 +0000
csiph-web