Being too strict about enforcing stupid rules is very negative. It makes people ignore the rules. You need to complain only when it really matters.
2/09/2009
02-09-09 - void pointer
Urg WTF why doesn't C++ let void * be implicitly cast to any other pointer type !? It's fucking void * obviously I'm
using that because it's untyped or type-unknown so I'm going to be casting it. Forcing me to cast in situations
like that where it's obvious just makes me more inclined to cast all the time without thinking about it, which
is much worse.
Subscribe to:
Post Comments (Atom)
old rants
-
▼
2009
(108)
-
▼
February
(26)
- 02-27-09 - Why is Intel selling me Software -
- 02-26-09 - Low Level Threading - Table of Contents
- 02-26-09 - Low Level Threading - Part 5.1
- 02-25-09 - Low Level Threading - Part 4.3
- 02-25-09 - Low Level Threading - Part 4.2
- 02-25-09 - Low Level Threading - Part 4.1
- 02-25-09 - Cast with union
- 02-24-09 - Low Level Threading - Part 3.1
- 02-24-09 - Low Level Threading - Part 3.0
- 02-24-09 - Low Level Threading - Part 4.0
- 02-23-09 - Low Level Threading - Annotated Linkies
- 02-22-09 - Linkies
- 02-19-09 - Thread Safety Levels
- 02-19-09 - PNG Sucks
- 02-19-09 - Two Code Gems - Appendium
- 02-19-09 - Of Code and Old Boss Stories
- 02-19-09 - Two Code Gems
- 02-18-09 - Perfectionists are Good Bosses
- 02-16-09 - Low Level Threading Junk Part 2.5
- 02-16-09 - Amusing Word Problem
- 02-10-09 - Image Compression Blues
- 02-10-09 - Fixed Block Size Embedded DCT Coder
- 02-10-09 - How to fight patents
- 02-09-09 - void pointer
- 02-04-09 - Exceptions
- 02-01-09 - Swap and Templates Part 2
-
▼
February
(26)
2 comments:
That's the one thing I do in C all the time that never ports to C++... so I've been slowly getting in the habit of doing it the C++ way since everyone always wants to compile my libraries as C++...
They should also just turn off the pointer aliasing optimization when you pass pointers through void* also.
Post a Comment