typedefs are useless
Steven Schveighoffer
schveiguy at yahoo.com
Tue Dec 4 10:11:46 PST 2007
"Simen Kjaeraas" wrote
> Have a template, it's on the house.
Thank you for the code.
However, there are still 2 problems with it:
1. Every time I define a typedef of the same base type, the operators are
reinstantiated. This makes for tremendous code bloat.
2. I cannot create const versions with operators.
i.e. how do I do this:
typedef long myType;
const myType x1 = cast(myType)5;
const myType x2 = x1 * cast(myType)5;
-Steve
More information about the Digitalmars-d
mailing list