Re: Anonymous structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Glynn,

On 8/4/06, Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx> wrote:
No. An anonymous structure has an unknown size, so the compiler cannot
generate code to copy them.

Anonymous structures are only useful as pointer targets, i.e.
"struct A *foo". You can pass around pointers to structures without
knowing the size of the structure, although you can't dereference them.



If we can't dereference them, then what would be the use of such a call ?
Can you cite a example for the above scenario ?

--
Raseel.
http://osd.byethost8.com
http://raseel.livejournal.com
-
: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux