proposal for better compile time error checking
Paul.Green at stratus.com
Wed Apr 30 14:25:33 GMT 2003
I'm a little unclear on whether the changes you are contemplating would
still allow the source code to be built by a C compiler. I don't have a
problem with source code that can be built by either C or C++, but I think
we need a lot more discussion, and some research, before dropping the
ability to build Samba with C. I could build Samba either way on Stratus
VOS, but I wonder whether that is true for all of the various platforms.
From: Claudia Moroder [mailto:claudiamoroder at st.ulrich.suedtirol.net]
Sent: Wednesday, April 30, 2003 10:19 AM
To: samba-technical at lists.samba.org
Subject: proposal for better compile time error checking
I think it would be a good idea if the developers would use c++ compiler
instread of gcc when compiing the samba sources. c++ does a better job
errors at compile time ( signed to unsigned assignment ecc. ) even
The drawback is that small changes to the source are necessary:
- casting where pointers are returned and assigned to pointers of different
- variables with the names "class", "template" and "new" must be changed.
- in 2-3 places #ifdefs are necessary
I would like to get feedback to my proposal so I know if I should begin to
create patches to adapt the code.
This mail has been sent using Alpikom webmail system
More information about the samba-technical