Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Shao Miller <sha0.miller@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: test(void *data) vs test(void &data) |
| Date | 2011-06-27 11:50 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <iua8us$fpc$1@dont-email.me> (permalink) |
| References | (6 earlier) <9fe3b$4dfe010a$5419acc3$32606@cache5.tilbu1.nb.home.nl> <itlevm$ik0$1@dont-email.me> <itlfkt$1gj$1@speranza.aioe.org> <itm2sf$nm9$1@dont-email.me> <avag075htjctrbhmt2m8s8da8u17vdblgu@4ax.com> |
On 6/27/2011 03:06, David Thompson wrote:
> On Sun, 19 Jun 2011 20:05:31 -0500, Shao Miller
> <sha0.miller@gmail.com> wrote:
>
> <snip>
>> There are other incomplete object types such as:
>>
>> typedef char foo[];
>> struct bar;
>>
>> Since an object of the former cannot be declared, I guess you wouldn't
>> have a problem, there.
>>
>> Since an object of the latter cannot be declared until 'struct bar' is
>> defined, I guess you wouldn't have a problem, there.
>
> Objects of those incomplete types can be declared, just not defined.
>
> Array-of-unknown-bound can be completed by an initializer in the
> definition, or for a tentative definition implicitly by the t.u. end
> (although that gives you array-bound-1 which isn't highly useful).
>
Yes[6.9.2p2]. I suppose it would have been more accurate to have typed
"...an object of the former cannot be constructed/produced..."
Which, incidentally, makes me curious about GCC's 'typeof'...
typedef char a_char[];
a_char foo;
typeof(foo) bar;
a_char foo = "Test";
int main(void) {
return sizeof bar, 0;
}
Aha. 'bar' stays incomplete, versus with:
typedef char a_char[];
a_char foo;
a_char foo = "Test";
typeof(foo) bar;
int main(void) {
return sizeof bar, 0;
}
> Struct-tag-only can similarly be completed before a (compatible)
> definition, or for a tentative definition by the t.u. end.
>
Well, it might have been clearer if I'd been explicit about context. It
was in regards to Mr. J. Navia's "references" and possible
implementation problems he might have (I found one elsewhere; heh). I'm
not sure he'd be able to create a reference to such objects while those
objects have only been declared with an incomplete type. Is that a
mistaken impression, though?
typedef char a_char[];
a_char foo;
int main(void) {
a_char & bar = &foo;
return 0;
}
#if WITH_OR_WITHOUT
a_char foo = "Test";
#endif
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-18 22:34 +0200
Re: test(void *data) vs test(void &data) "Paul" <pchristor@yahoo.co.uk> - 2011-06-18 22:30 +0100
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 00:10 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 00:17 +0200
Re: test(void *data) vs test(void &data) "Paul" <pchristor@yahoo.co.uk> - 2011-06-18 23:30 +0100
Re: test(void *data) vs test(void &data) Angel <angel+news@spamcop.net> - 2011-06-18 22:46 +0000
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 06:06 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 06:36 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 06:40 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 06:44 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 02:48 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 15:53 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 13:42 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 07:23 +0200
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-19 18:43 -0500
Re: test(void *data) vs test(void &data) Keith Thompson <kst-u@mib.org> - 2011-06-19 17:07 -0700
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 07:29 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 07:27 +0200
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-20 03:58 -0500
Re: test(void *data) vs test(void &data) "Kleuskes & Moos" <kleuske@xs4all.nl> - 2011-06-20 04:11 -0700
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-20 09:41 -0500
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-20 09:17 -0500
Re: test(void *data) vs test(void &data) "James" <no@spam.invalid> - 2011-06-18 15:50 -0700
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 00:53 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 01:06 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 01:12 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 01:21 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 01:29 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 01:31 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 01:39 +0200
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-19 18:07 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 18:17 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-20 13:51 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-21 06:12 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-21 07:56 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-21 17:15 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-21 10:59 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-21 22:48 +0200
Re: test(void *data) vs test(void &data) Keith Thompson <kst-u@mib.org> - 2011-06-21 15:33 -0700
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-22 02:06 +0200
Re: test(void *data) vs test(void &data) Arivald <arivald_@AT_interia_DOT_.pl> - 2011-06-22 11:35 +0200
Re: test(void *data) vs test(void &data) Mark Storkamp <mstorkamp@yahoo.com> - 2011-06-21 08:20 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-21 17:18 +0200
Re: test(void *data) vs test(void &data) Arivald <arivald_@AT_interia_DOT_.pl> - 2011-06-21 15:59 +0200
Re: test(void *data) vs test(void &data) jacob navia <jacob@spamsink.net> - 2011-06-21 16:07 +0200
Re: test(void *data) vs test(void &data) Keith Thompson <kst-u@mib.org> - 2011-06-21 08:06 -0700
Re: test(void *data) vs test(void &data) Lento <lento@netfront.net> - 2011-06-19 07:21 +0800
Re: test(void *data) vs test(void &data) "io_x" <a@b.c.invalid> - 2011-06-19 08:51 +0200
Re: test(void *data) vs test(void &data) "io_x" <a@b.c.invalid> - 2011-06-19 08:52 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 03:06 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 15:57 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 13:41 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 07:16 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 00:25 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 00:26 +0200
Re: test(void *data) vs test(void &data) "Paul" <pchristor@yahoo.co.uk> - 2011-06-18 23:35 +0100
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 00:49 +0200
Re: test(void *data) vs test(void &data) Keith Thompson <kst-u@mib.org> - 2011-06-18 16:35 -0700
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 05:45 +0200
Re: test(void *data) vs test(void &data) "James" <no@spam.invalid> - 2011-06-18 21:24 -0700
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 06:47 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 02:53 -0500
Re: test(void *data) vs test(void &data) Nobody <nobody@nowhere.com> - 2011-06-19 05:37 +0100
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 06:49 +0200
Re: test(void *data) vs test(void &data) jacob navia <jacob@spamsink.net> - 2011-06-19 08:33 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 02:59 -0500
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 02:57 -0500
Re: test(void *data) vs test(void &data) Nobody <nobody@nowhere.com> - 2011-06-19 11:23 +0100
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 16:00 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 13:25 -0500
Re: test(void *data) vs test(void &data) jacob navia <jacob@spamsink.net> - 2011-06-19 20:37 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 16:44 -0500
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-19 20:05 -0500
Re: test(void *data) vs test(void &data) David Thompson <dave.thompson2@verizon.net> - 2011-06-27 03:06 -0400
Re: test(void *data) vs test(void &data) Shao Miller <sha0.miller@gmail.com> - 2011-06-27 11:50 -0400
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 07:31 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-20 13:11 -0500
Re: test(void *data) vs test(void &data) Paul N <gw7rib@aol.com> - 2011-06-20 11:58 -0700
Re: test(void *data) vs test(void &data) "Paul" <pchristor@yahoo.co.uk> - 2011-06-19 07:33 +0100
Re: test(void *data) vs test(void &data) jacob navia <jacob@spamsink.net> - 2011-06-19 08:27 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 03:03 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 16:04 +0200
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 16:05 +0200
Re: test(void *data) vs test(void &data) Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2011-06-19 10:53 -0400
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-19 17:08 +0200
Re: test(void *data) vs test(void &data) James Kuyper <jameskuyper@verizon.net> - 2011-06-19 13:02 -0400
Re: test(void *data) vs test(void &data) Tim Rentsch <txr@alumni.caltech.edu> - 2011-06-19 16:31 -0700
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-19 13:35 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-20 07:20 +0200
Re: test(void *data) vs test(void &data) Stephen Sprunk <stephen@sprunk.org> - 2011-06-20 13:14 -0500
Re: test(void *data) vs test(void &data) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-06-21 06:13 +0200
Re: test(void *data) vs test(void &data) Arivald <arivald_@AT_interia_DOT_.pl> - 2011-06-21 16:03 +0200
csiph-web