
9 Oct
2005
9 Oct
'05
10:29 a.m.
Just provide alternative unit systems. Then we can all choose the ones we want, when we want.
Hows that? :-)
template<class CoordinateUnit> class Widget {};
? Well, over my dead body ;-)
And even without templates, the simpler the model, the better.
Take a look at win32::gui::draw::length It isn't templated, and it allows you to specify the unit both in code, and in script. Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/surfaces.html - Sky's the limit! -- http://www.torjo.com/cb/ - Click, Build, Run!