Re: [Dev-C++] compiling project fails
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Josh M. <mrl...@gm...> - 2005-03-22 03:30:36
|
Whoops, sent my reply to Matthew only. My mistake.
The semi-colon is there because you're able to create instances of
classes right after declaring them, and before the semi-colon. That
sounds pretty logical to me.
On Mon, 21 Mar 2005 17:12:05 -0800, Mat...@ve...
<Mat...@ve...> wrote:
> Really my opinion of this is the same but it was not the subject of the
> original poster's mail; therefore, until now, I had refrained from
> discussing it. If it were up to me this semicolon would also be eliminated
> since it really seems spurious.
>
> One quibble about your characterization of structs as being classes with
> different protection: functions in structs definitely do not get called like
> functions in classes, nor do they behave the same way inside the compiler.
>
> -----Original Message-----
> From: Per Westermark [mailto:pw...@ia...]
> Sent: Monday, March 21, 2005 2:11 PM
> To: Mat...@Ve...
> Cc: m.d...@fe...;
> dev...@li...
> Subject: RE: [Dev-C++] compiling project fails
>
> But just a short note:
>
> What would you do with:
>
> struct Person {
> std::string name;
> unsigned age;
> bool Save(mystream& s);
> bool Load(mystream& s);
> };
>
> A struct that is a class? The only difference between a struct and a class
> is the default protection.
>
> /Per W
>
> On Mon, 21 Mar 2005 Mat...@Ve... wrote:
>
> > You see it how you see it. I see it how I see it. I look at a class as
> being
> > more like a namespace than like an enumeration or structure. You look at a
> > class as being more like an enumeration or structure than like a
> namespace.
> >
> > This difference in belief is trivial and irreconcilable; therefore, QED,
> let
> > us not continue debating it.
> ___________________________________________________________________
> The information contained in this message and any attachment may be
> proprietary, confidential, and privileged or subject to the work
> product doctrine and thus protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee or
> agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify me
> immediately by replying to this message and deleting it and all
> copies and backups thereof. Thank you.
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|