Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27101
| Date | 2013-12-28 14:53 -0500 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: literals and keywords |
| References | <keywords-20131228171259@ram.dialup.fu-berlin.de> <l9n026$7to$1@dont-email.me> <keywords-20131228181648@ram.dialup.fu-berlin.de> <l9n6tq$fsh$1@dont-email.me> |
| Message-ID | <52bf2c49$0$304$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 12/28/2013 1:56 PM, markspace wrote: > Why exactly "this" and "new" and "super" aren't literals, I don't know. > Possibly because their value isn't fixed, but depends on context, and > therefore isn't actually a single literal value. They represent a range > of values, and the language implementers didn't want to call them > operators or variables or introduce a new concept like "special > function," so they just called them a keyword because they had the > concept already and it worked well enough. this and super are not constant so they could never be called a literal. And new is an operator. More like instanceof. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: literals and keywords markspace <markspace@nospam.nospam> - 2013-12-28 08:59 -0800
Re: literals and keywords "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2013-12-28 17:28 +0000
Re: literals and keywords markspace <markspace@nospam.nospam> - 2013-12-28 10:56 -0800
Re: literals and keywords Arne Vajhøj <arne@vajhoej.dk> - 2013-12-28 14:53 -0500
Re: literals and keywords markspace <markspace@nospam.nospam> - 2013-12-28 12:41 -0800
Re: literals and keywords Arne Vajhøj <arne@vajhoej.dk> - 2013-12-28 16:36 -0500
csiph-web