Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <4FB2B9E5.4020409@loria.fr> (permalink) |
|---|---|
| Date | 2012-05-15 22:17 +0200 |
| From | Jens Gustedt <jens.gustedt@loria.fr> |
| Newsgroups | comp.lang.c |
| Subject | Re: Possible occurrences of "char [3]" |
| References | <4af8a9a8-fe7c-4961-8e49-ff02da2a4b6d@m10g2000vbb.googlegroups.com> <28ba14b1-6a7a-4dba-b9c2-13928a51cb54@n5g2000vbf.googlegroups.com> <aa11ebcb-2aa3-41b5-b99b-31aeef293b82@q5g2000yqk.googlegroups.com> <0.a75cedbbd295402f03fe.20120515031955BST.874nrip4ms.fsf@bsb.me.uk> |
| Organization | Guest of ProXad - France |
Am 15.05.2012 04:19, schrieb Ben Bacarisse: > That's not a cast. It's a compound literal. > > (Anyone know why that are called that since they need not be compound > and they don't seem to be literals -- at least not like any other C > literals?) It's a misnomer (like others) a failed attempt to introduce "real" literals for all types of classes. "Real" literals would be given by const qualified register variables in file scope (which are unfortunately not allowed.) My guess is that the analogy is not taken from literals for arithmetic types but from "string literals", which aren't "literals" either, but unmutable objects. Jens
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Possible occurrences of "char [3]" John Reye <jononanon@googlemail.com> - 2012-05-03 14:03 -0700
Re: Possible occurrences of "char [3]" Ben Pfaff <blp@cs.stanford.edu> - 2012-05-03 14:09 -0700
Re: Possible occurrences of "char [3]" John Reye <jononanon@googlemail.com> - 2012-05-03 14:13 -0700
Re: Possible occurrences of "char [3]" John Reye <jononanon@googlemail.com> - 2012-05-13 05:10 -0700
Re: Possible occurrences of "char [3]" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-05-15 03:19 +0100
Re: Possible occurrences of "char [3]" Jens Gustedt <jens.gustedt@loria.fr> - 2012-05-15 22:17 +0200
Re: Possible occurrences of "char [3]" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-05-15 21:28 +0100
Re: Possible occurrences of "char [3]" Jens Gustedt <jens.gustedt@loria.fr> - 2012-05-16 08:18 +0200
Re: Possible occurrences of "char [3]" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-05-16 12:20 +0100
Re: Possible occurrences of "char [3]" Tim Rentsch <txr@alumni.caltech.edu> - 2012-05-17 14:59 -0700
Re: Possible occurrences of "char [3]" Tim Rentsch <txr@alumni.caltech.edu> - 2012-05-17 14:53 -0700
Re: Possible occurrences of "char [3]" Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-05-03 22:28 +0100
Re: Possible occurrences of "char [3]" Jens Gustedt <jens.gustedt@loria.fr> - 2012-05-04 09:28 +0200
Re: Possible occurrences of "char [3]" "Scott Fluhrer" <sfluhrer@ix.netcom.com> - 2012-05-04 17:10 -0400
csiph-web