From koffice-devel Tue Jun 03 12:50:28 2008 From: Jaroslaw Staniek Date: Tue, 03 Jun 2008 12:50:28 +0000 To: koffice-devel Subject: Re: structs vs classes; was Re: koffice/kspread Message-Id: <48453E14.3030304 () iidea ! pl> X-MARC-Message: https://marc.info/?l=koffice-devel&m=121249740509896 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