Closed p5pRT closed 7 years ago
This patch moves variables to the innermost scope where they're actually used. This will minimize the chances of variables being misused incorrectly\, and make clear the intended range of use of them.
In some cases\, temporary variables in inner scopes have been duplicated into two or more inner scopes.
In two cases\, this also saves us from initializing a variable when it doesn't need to be.
On Thu\, 16 Feb 2017 22:37:04 -0800\, petdance wrote:
This patch moves variables to the innermost scope where they're actually used. This will minimize the chances of variables being misused incorrectly\, and make clear the intended range of use of them.
Please could you make the patch _only_ that\, without the apparently random extra changes? I see const being added on variables not being moved\, and a change of a variable's type.
That'd make it easier to review\, and help ensure the commit message can accurately describe the change.
In particular I'd expect to see a separate commit for the SSize_t => IV change\, that explains why it's correct and necessary.
Hugo
The RT System itself - Status changed from 'new' to 'open'
In particular I'd expect to see a separate commit for the SSize_t => IV change\, that explains why it's correct and necessary.
Sorry\, I thought I’d removed that. I’ll rebuild the patch.
-- Andy Lester => www.petdance.com
Redone as #130809
@petdance - Status changed from 'open' to 'rejected'
Migrated from rt.perl.org#130799 (status was 'rejected')
Searchable as RT130799$