home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,942 of 33,346   
   Andre Kaufmann to All   
   Re: Are MACROS good and can the compiler   
   16 Feb 12 21:15:35   
   
   0054b3ee   
   From: akfmnews@t-online.de   
      
   >> - Macros prevent the compiler to be as fast in compilation as compilers   
   >> of   
   >> [...]   
      
   >Easy fix: don't do it again and again, just do it once.   
      
   I don't do it, the compiler does.   
   If I touch a header file, which is included in every cpp file of a project,   
   the compiler   
   simply recompiles the whole project, even if it wouldn't have to.   
   In other languages only a single module is recompiled not the whole project.   
      
   >Again, you can see it just fine. All compilers have a switch you can   
   >use to just preprocess the files, and all IDEs have it very well   
   >integrated.   
      
      
   >> Macros have the advantage to be built into the "language" (preprocessor).   
   >> But IMHO this doesn't outweigh   
   >> the disadvantages.   
      
   >It does for me.   
      
   It does for me too, but it could be better.   
   macros differently. It's not a huge problem,   
   C++ has many advantages and if macros are not misused   
   they do for me too.   
      
   Andre   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca