RE: -fdefault-integer-8 in c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi José,

> Would be possible to use something like #define int long in the code.

That would be possible.  (Along the same lines as "It would be possible to kill a fly using a 12 PW orbital satellite laser.")

I strongly discourage such a solution.

>From a C (or C++) point of view, such a solution would be "very bad".  I would rank it in the top ten worst coding practices for C/C++, were such to be used.

I am rather biased against programming in the Preprocessor in general.  This would be a particularly odious use of the Preprocessor programming.

Even moreso because you'd need to do it in your header file, and all your clients would be affected by the Preprocessor substitution of a C/C++ keyword.  Very likely including the OS header files, which would break the platform API.

Sincerely,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux