Re: not sure where to post this question... bit C++ implementation specific....
Jorrit Tyberghein <[email protected]>
| Newsgroups | gmane.games.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Richard Fabian wrote: >You've got to admit this is a bit of a stinker, and i can't see why the >c++ langauge cannot cope with this simple premise. > >At the moment, the best compromise we can come up with is to #ifdef >VALUE #error#else#define VALUE 12.5f#endif >... do stuff with the constant ... >#undef VALUE > >we've got a good thing going on about not polluting the namespace, and >#defines can wreak havok on anything that hits them. > > > If you think #define's are so bad then why not use allocation then? Greetings, ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Gamedevlists-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=557