null and type safety

BCS ao at pathlink.com
Fri Nov 7 17:58:32 PST 2008


Reply to KennyTM~,

> Just create a struct with an int as its only member?
> 

But if you do that then you have to explicitly build all of the math overloads. 
Sometimes, they ALL end up as simple shells so why force the programer to 
build them all? Also it forces the compiler to use the int code generator 
rather than potentially not inlineing.





More information about the Digitalmars-d mailing list