Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #5528
| From | "Joel C. Salomon" <joelcsalomon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Lets put it another way |
| Date | 2011-05-25 13:56 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <50ea09dc-e559-40dd-b42e-c7adbfe526fa@a10g2000vbz.googlegroups.com> (permalink) |
| References | (8 earlier) <dIWCp.26006$7H.21654@newsfe08.ams2> <70ecc085-405f-41c0-b191-c29ea6f3f971@18g2000prd.googlegroups.com> <iq4Dp.17102$h35.12700@newsfe19.ams2> <c21ddc21-dfec-4bf4-9128-9c53125107db@dn9g2000vbb.googlegroups.com> <c040a44a-9a0d-4435-9c90-0e37c9a43f2e@r35g2000prj.googlegroups.com> |
On May 25, 4:42 pm, Joshua Maurice <joshuamaur...@gmail.com> wrote: > On May 25, 12:32 pm, "Joel C. Salomon" <joelcsalo...@gmail.com> wrote: > > On May 25, 5:59 am, "Paul" <pchris...@yahoo.co.uk> wrote: > > > If there is no such thing as an array type object then what is the object > > > that is implicitly converted to a pointer, and stores a memory address? > > > That's the *name* of the array that implicitly converts to a pointer. > > The name is a compile-time concept, though, and does not quite > > correspond to what the Standard calls an "object". > > No. There is an array object, and it is implicitly converted to a > pointer to the first element. Consider: > > int x[3]; > int (*y)[3] = x; > int* z = *y; > > y is not the identifier of the array object. y is a pointer which > points to the array object. Derefencing y gives an expression of array > type, specifically "int[3]". Then a standard conversion sequence is > applied using the array-to-pointer conversion in the assignment to z. I didn't think that would work until I tried it (including the "... = &x;" fix you posted); I stand corrected. Thank you. --Joel
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 02:14 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-24 13:33 +1200
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-23 18:39 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 10:42 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-24 03:00 -0700
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-24 03:03 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 14:54 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-24 13:46 -0700
Re: Lets put it another way Leigh Johnston <leigh@i42.co.uk> - 2011-05-24 21:49 +0100
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 23:56 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-24 16:51 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 10:59 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 03:51 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 12:49 +0100
Re: Lets put it another way "Joel C. Salomon" <joelcsalomon@gmail.com> - 2011-05-25 12:32 -0700
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 13:42 -0700
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 13:48 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 21:55 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 13:59 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 22:08 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 14:29 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 22:56 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 15:10 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 23:53 +0100
Re: Lets put it another way "Joel C. Salomon" <joelcsalomon@gmail.com> - 2011-05-25 15:02 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 23:37 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 16:03 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 00:19 +0100
Re: Lets put it another way Leigh Johnston <leigh@i42.co.uk> - 2011-05-26 00:29 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 16:30 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 00:58 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 17:10 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 01:26 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 17:54 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 10:42 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-26 03:06 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 11:25 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-26 03:33 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 12:56 +0100
Re: Lets put it another way Vidar Hasfjord <vattilah-groups@yahoo.co.uk> - 2011-05-25 16:09 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 00:20 +0100
Re: Lets put it another way "Joel C. Salomon" <joelcsalomon@gmail.com> - 2011-05-25 13:56 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 22:18 +0100
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 12:45 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 13:47 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 22:03 +0100
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 14:32 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-24 14:16 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 00:00 +0100
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 10:20 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-24 22:27 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 13:58 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-25 07:36 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-24 21:11 +0100
Re: Lets put it another way Oliver Jackson <chexmofo@hotmail.com> - 2011-05-24 16:04 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 11:27 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-25 12:03 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 11:13 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-26 09:19 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 22:39 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 14:45 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 23:01 +0100
Re: Lets put it another way Leigh Johnston <leigh@i42.co.uk> - 2011-05-25 22:48 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-26 09:57 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 23:09 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-26 10:17 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 23:56 +0100
Re: Lets put it another way Ian Collins <ian-news@hotmail.com> - 2011-05-26 13:04 +1200
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 10:47 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 15:17 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 00:03 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 16:14 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 00:32 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 16:39 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 01:18 +0100
Re: Lets put it another way Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-25 17:52 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 10:53 +0100
Re: Lets put it another way Vidar Hasfjord <vattilah-groups@yahoo.co.uk> - 2011-05-25 15:31 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-25 23:58 +0100
Re: Lets put it another way Vidar Hasfjord <vattilah-groups@yahoo.co.uk> - 2011-05-25 16:54 -0700
Re: Lets put it another way "Paul" <pchristor@yahoo.co.uk> - 2011-05-26 01:00 +0100
csiph-web