Banishing the C-style cast from scripts.dll [message #338660] |
Wed, 02 July 2008 18:49 |
=HT=T-Bird
Messages: 712 Registered: June 2005
Karma: 0
|
Colonel |
|
|
Pros of new-style (static_cast<>() and friends) casts:
- They are easier to find in code
- They express the programmer's intentions better
- They allow the compiler to perform at least some checking in most cases
- The syntax has fewer unwanted precedence problems
Cons:
- They are longer and more verbose than the C-style cast
I think you get the picture, but:
Any "Nay"s on this project? (I'd be more than happy to volunteer my labor for this, btw.)
HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.
If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
[Updated on: Wed, 02 July 2008 18:50] Report message to a moderator
|
|
|
|
|
|
|
|
|