ios - Is 'init' forbidden as *part* of a variable name? -


i spent 3 hours debugging error , in end narrowed down (i think) variable name.

i using initmonths (initial months) caused unpredicatable errors when changed imonths worked!

i can understand preventing use of init on it's own surprised if prevented part of variable name. bug or feature?

it's not bug if it's related name being overlap. there's part of arc used know when retain counts should updated, , may running that.

similar rules apply use new @ start of names (for same reason).

it's easy , wise steer clear of using init @ start of names unless it's init function.

i can imagine issue related arc getting involved shouldn't , takes while called shouldn't, weird.

i expect issue else , name change had other effect. worst case means have memory issue , changing name has changed memory footprint of code you've moved bug somewhere else (or along lines).


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -