[Eap-features] Re: Inline loop variable to unwrap loop

2002-06-25 Thread Alain Ravet
IMhO, the reverse refactoring would be a hundred times more useful : From : --- someArray[0] = 0; someArray[1] = 1; To : --- for (int i = 0; i < 2; i++) { someArray[i] = i; } Alain Ravet Roger Dubbs wrote: > Let's say I have a loop that looks

[Eap-features] Re: Inline loop variable to unwrap loop

2002-06-24 Thread Roger Dubbs
I'll agree that it is uncommon, or low priority, but what would you expect to happen if you tried to inline a loop variable? Shouldn't be all that confusing, and there's always undo if it does something you didn't expect. Roger "Niels Ull Harremoës" <[EMAIL PROTECTED]> wrote in message af82ui$v

[Eap-features] Re: Inline loop variable to unwrap loop

2002-06-24 Thread Niels Ull Harremoës
-1 I think this refactoring is so uncommon, adding it in will be more confusiing than helpful. "Roger Dubbs" <[EMAIL PROTECTED]> wrote in message af7fj4$gii$[EMAIL PROTECTED]">news:af7fj4$gii$[EMAIL PROTECTED]... > Let's say I have a loop that looks like: > for (int i = 0; i < 2; i++) { > so