Adding properties/members to base types?
Daniel Keep
daniel.keep.lists at gmail.com
Wed Sep 5 19:29:06 PDT 2007
Steven Schveighoffer wrote:
> "Kirk McDonald" wrote
>> This currently works only for the array types. It was proposed to
>> generalize it for all types.
>
> Kirk,
>
> Thanks, that is where I read it. For some reason I couldn't find it. I
> hope it does get added, but only for basic types/enums, because allowing it
> for classes/structs would confuse the hell out of me :) Not only would you
> have to look through class definitions/base classes, but also randomly
> placed functions to find out what the definition of some class property is.
>
> -Steve
Heaven knows we don't have the exact same problem with free functions,
since you can always tell where they're coming from. And hell, you
*always* have the ability to modify a class or struct's definition, so
there's no reason to ever create a free function!
-- Daniel
P.S. For those that don't know me very well: :P
More information about the Digitalmars-d-learn
mailing list