Jim Starkey wrote:
> John David Duncan wrote:
>>>> For reasons that I don't quite understand, I still use structs for
>>>> little things without methods; if nothing else, it saves the "public:"
>>>> line.  Maybe we should all give up on structs...
>>>
>>> Heh, yeah. :)  AFAIK, other than scope protection, there's not much
>>> difference between a class and a struct from the point of view of the
>>> compiler's generated code...
>>
>> According to Mr. Stroustrup there is *no* difference.
>>
>>
>>
> Default access for class is private; default access for struct is
> public.  Otherwise, no difference.
> 

Yup - actually, that typedef structs thing should go.

In c++, there is also no need to say "struct foo" everywhere... foo is fine.

Monty

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to