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,844 of 33,346   
   Daniel James to Mathias Gaunard   
   Re: What will keep C++ going, given that   
   24 Jan 12 14:00:52   
   
   5fb2fe01   
   From: daniel@me.invalid   
      
   In article   
   <7a956c83-57cd-461d-82da-fa06950b04fa@v14g2000vbc.googlegroups.com>,   
   Mathias Gaunard wrote:   
   >> Can you please post an example of a script which changes the name   
   >> of method "foo" to "bar" in class "FooBar", without modifying the   
   >> names of any other methods, classes, variables or contents of any   
   >> hardcoded string?   
   >   
   > Strictly speaking, that's not possible without semantic analysis.   
      
   This is pretty-much where I came in ... we need better tools for C++   
   *because* the current tools don't do semantic analysis of the   
   sourcecode and we need tools that do.   
      
   Note that the refactoring problem is not just about being able to   
   replace a method called "foo" with a method called "bar", but is also   
   about being able to replace "foo( int )" with "bar( int) while leaving   
   "foo( vector )" untouched, and being able to replace "baz::foo(   
   int )" but not "quxx::foo( int )" and ...   
      
   > Scripting gets you an approximation, which is usually good enough to   
   > get stuff done.   
      
   For some wholly inadequate definition of "stuff" ...   
      
   --   
   Regards,   
     Daniel.   
   [Lest there be any confusion I am NOT the Boost maintainer of the same   
   name]   
      
      
         [ 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