User Defined Attributes
Jacob Carlborg
doob at me.com
Sat Nov 10 11:15:59 PST 2012
On 2012-11-10 20:04, Walter Bright wrote:
> Think of it this way. If I have myString.String, and use the strings in
> it as an attribute in one module, and in another use module use
> myString.String as an attribute with a totally different meaning, that
> will not work if plugins are used.
I'm not entirely sure what you're meaning here but if you have two
symbols with the same name in two different modules their fully
qualified names won't be the same.
If you're referring to using a string literal as an attribute then that
would be a bad thing, like we have tried to explain. It's better to use
a type which will have a unique name.
If I have misunderstood what you're meaning could you provide a code
example?
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list