Pages: 1 [2]   Go Down
Author Topic: Alignment  (Read 2155 times)
0 Members and 1 Guest are viewing this topic.
Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 98
Posts: 4809
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What about the sideways compatibilities?
What about comprehensibility? There is a special place in hell reserved for macro writers.

Where they have to debug tons of that kind of code without any help and a boss down their neck?

Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hehe... yeah I agree that macros such as I posted here are a really bad idea for any code that is intended to be maintained. The code I posted wasn't intended to be maintained, but just a quick one-off to gather real-world info on data type sizes and alignments. Sorry, I won't inflict my cleaver macros on y'all again  smiley

(BTW I think simple macros do have their place. For example the Arduino API has quite a few.)
Logged

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 70
Posts: 2174
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

(BTW I think simple macros do have their place. For example the Arduino API has quite a few.)

I Agree, however rendering valuable names in every namespace unusable was a terrible choice ( Arduino API ).
I'm sure somebody may want a class with members called min, or max.

Or at least the possibility of overloading them ( if they were a real function ).
Logged


Pages: 1 [2]   Go Up
Jump to: