User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Tue Nov 13 16:49:44 PST 2012


On 11/13/2012 2:55 PM, bearophile wrote:
> Walter Bright:
>
>> consider the type "int". Different modules impute different meanings into it
>> all the time, and it doesn't cause terrible compatibility problems between
>> modules.
>
> The usage of naked basic types as int and double cause troubles.

I know that you can use custom types instead, and have better type checking, 
etc., and can be a pretty good idea for a lot of use cases. But D does not 
require that. It's up to the programmer.



More information about the Digitalmars-d-announce mailing list