Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or even better then double:

inline void updateCachedWidth() { m_cachedWidth = computeWidth() * deviceScaleFactor(); }

Ghee, was that line so hard to read ? No it's easier ! (Might have just been an example though.)



I was also wondering why this wasn't done, it must have been an example that was reduced in size.


Came here to ask about this, found your answer. Thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: