From: "Raseel Bhagat" <raseelbhagat@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: Anonymous structures
Date: Sat, 5 Aug 2006 07:58:12 +0530 [thread overview]
Message-ID: <f68850780608041928j6c417b5bs161805a207847ae9@mail.gmail.com> (raw)
In-Reply-To: <17619.33371.576220.777404@cerise.gclements.plus.com>
Hi Glynn,
On 8/4/06, Glynn Clements <glynn@gclements.plus.com> 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
next prev parent reply other threads:[~2006-08-05 2:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 15:28 Anonymous structures krishna.vamsi
2006-08-04 17:22 ` Glynn Clements
2006-08-05 2:28 ` Raseel Bhagat [this message]
2006-08-05 16:20 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f68850780608041928j6c417b5bs161805a207847ae9@mail.gmail.com \
--to=raseelbhagat@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).