User Defined Attributes
Walter Bright
newshound2 at digitalmars.com
Tue Nov 13 23:46:51 PST 2012
On 11/13/2012 11:16 PM, Jacob Carlborg wrote:
> On 2012-11-13 23:24, Walter Bright wrote:
>
>> That is what I mean, and it also applies to a library type which
>> different modules may press into service as attributes.
>
> I think there must be some kind of misunderstanding here. I still don't see the
> problem if fully qualified symbols are used. I mean, it will be unique.
>
We agree that strings can be used globally as attributes with different
meanings, right?
So why can't test.foo.bar also be used globally as an attribute with different
meanings? It's just a type name, it has no magic property that says it cannot be
used for different purposes. Ok, let's call it:
std.mytypes.mystring
? Now have those string contents mean different things to different users of
std.mytypes.mystring.
More information about the Digitalmars-d-announce
mailing list