RE: [Dev-C++] compiling project fails
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <Mat...@Ve...> - 2005-03-22 01:12:16
|
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.
|