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,846 of 33,346   
   Seungbeom Kim to Frank Birbacher   
   Re: What will keep C++ going, given that   
   25 Jan 12 11:21:59   
   
   From: musiphil@bawi.org   
      
   On 2012-01-23 17:43, Frank Birbacher wrote:   
   >   
   > You haven't even overloaded function A with a different parameter type   
   > and requested to rename only one overload not both. ;)   
   >   
   > How often do you name a global scope function "A"? How often do you   
   > name a class member "A", too? How often does your function name match   
   > a template parameter name? I guess Mathias doesn't encounter these   
   > cases very often. So his tools work for him. Your milage may vary.   
   > What is your point in providing a contrieved example where his tools   
   > might not work?   
      
   While the example given was contrived indeed, the same problem it raises   
   is not hard to find in real-life situations. Even without overloading   
   you just mentioned, same identifiers in different class scopes (e.g.   
   A::execute and B::execute where classes A and B are not related) make it   
   quite hard to locate a specific function or object. I'm not saying it   
   happens very often, but the point is that there are certainly real cases   
   where so-called "advanced automated text replacing tools" such as   
   "find, grep, sed and perl" can screw things up and bite you. And they   
   were when I wished I had had a smart IDE that could make the distinction.   
      
   --   
   Seungbeom Kim   
      
      
         [ 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