Date: 2018-09-25 03:09 pm (UTC)
jack: (Default)
From: [personal profile] jack
Yeah, good example. Indeed, I'd often have something like

const int something_size = 16;
const int something_else_size = something_size;


so that everything uses the appropriate variable now, and if they diverge in future it's easy to change one of them and not need to separate out which uses need to change.

And conversely, if other parts of code start to depend on them being the same, it's easy to search-and-replace and make them all the same variable, if we decide we want to give up that functionality to avoid doing extra work to keep it true.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

Loading anti-spam test...

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org