On Sun, 2007-12-23 at 10:22 +0530, debasish deka wrote:
> Hello All,
> Sorry for not typing the entire thing on the subject line.
> I want to know why " The Members of a structure can't have storage
> class specifiers, 

In C, a structure member may be of any type except function returning
some type, any incomplete type, any variably modified type, and void.
Hence storage class specifiers can break this rule.

> but Objects of the structure type can, and they apply to all of the
> members."

In this case objects of a structure is working on the structure, not the
structure members directly. 

One of the beautiful complexities of C and C++, that I too got burned on
once. I think (and hence might be wrong) that the language D addresses
this.

-- Chris

> I tried 'Googling' a few times...but not getting the reason/logic for
> it....
> Can anyone help me in this ?
> With regards,
> Debasish
> 
> Karmennevaya Dhikaraste, Maaphaaleshu Kadaachanah
> 
> Unlimited freedom, unlimited storage. Get it now, on
> http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> 
>  

Reply via email to