Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Erik Malund
05/25/12 10:13
Read: 436 times
Mt Airy, Nc
USA


 
#187526 - well I recommend it
Responding to: Oliver Sedlacek's previous message
I believe these sorts of techniques are hard to maintain

I do not know about "these sorts of techniques" but this technique (extern defined or not) make things a lot easier and safer to maintain e.g. changes from U8 to U16 only take place in one place and there is no way to miss "changing in the other place". Also, in the case where things are done twice I have seen differences from not entering the same at the original creation.

Erik

List of 15 messages in thread
TopicAuthorDate
const strings in C      Stefan KAnev      05/23/12 23:27      
   Does not compile      Maarten Brock      05/24/12 02:05      
      my question was      Stefan KAnev      05/24/12 04:21      
         Common to play with #define EXTERN      Per Westermark      05/24/12 05:41      
            Common doesn't mean recommended      Oliver Sedlacek      05/25/12 09:43      
               well I recommend it      Erik Malund      05/25/12 10:13      
               No - not hard to maintain at all      Per Westermark      05/25/12 12:44      
   C strings      Per Westermark      05/24/12 03:00      
   Whats wrong with a header file?        Oliver Sedlacek      05/24/12 10:08      
      nothing wrong, double work      Stefan KAnev      05/24/12 11:04      
         It works, and has advantages      Oliver Sedlacek      05/25/12 07:06      
         I got in a total absolute magnificent mess      Erik Malund      05/25/12 07:58      
   thanks to everyone, and next question is      Stefan KAnev      05/25/12 14:46      
      about (tables of) pointers to const strings      Stefan KAnev      05/25/12 14:47      
         C++ and style      Maarten Brock      05/26/12 03:57      

Back to Subject List