[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: structs vs classes; was Re: koffice/kspread
From: Jaroslaw Staniek <js () iidea ! pl>
Date: 2008-06-03 12:50:28
Message-ID: 48453E14.3030304 () iidea ! pl
[Download RAW message or body]
Cyrille Berger said the following, On 2008-05-30 09:02:
> On Friday 30 May 2008, Thorsten Zachmann wrote:
>> A struct is just a class where members are public as default. I would not
>> like to change all structs to classes as I really enjoy the possibility to
>> write less.
>
> That's what the standard says. Unfortunately some compilers (msvc) generates
> different symbols for class and struct, and generate compile errors if you
> use class after a forward declaration as a struct.
That's not true. The symbols appear to be the same and there are no errors but
only warnings.
Methods in structs just obfuscate the code in my eyes, that's the problem.
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
KDE Libraries for MS Windows (http://windows.kde.org)
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic