Re: Tools for C/C++

Richard <[email protected]> Tue, 21 Sep 2010 19:54:37 -0600
Newsgroups gmane.comp.programming.refactoring
Organization multi-cellular, biological
Message-ID <[email protected]>
In article <[email protected]>,
    Keith Ray <[email protected]> writes:

> The example code has lines 3-8 selected for extract method and 'nCounter' as
> the problematic variable.
> 
> [ 1 ] void OriginalMethod()
> [ 2 ] {
> [ 3 ]     int nCounter;
> [ 4 ]     for (nCounter = 0; nCounter < 5; nCounter++)
> [ 5 ]     {
> [ 6 ]          cout << "Iteration " << nCounter << endl;
> [ 7 ]          if (g_bCancel) break;
> [ 8 ]    }
> [ 9 ]    cout << "Execution stopped at iteration << nCounter << endl;
> [10 ] }

OK, yes, I know about this behavior and I agree its annoying.
ReFactor!Pro does a better job at this, but it has so many other bugs
that I can't really recommend it yet.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/