UDAs - Restrict to User Defined Types?
Jacob Carlborg
doob at me.com
Thu Nov 8 05:19:28 PST 2012
On 2012-11-08 11:56, simendsjo wrote:
> Or
> struct @foo {}
> interface @foo {}
> enum @foo {0
> etc
That syntax looks a bit backwards to me. What if I want to annotate the
attribute.
@serializable struct @foo {}
Looks a bit confusing which is the name of the attribute and the which
is the attached annotation.
Vs
@serializable @attribute struct foo {}
No confusion here, "foo" is the name of the attribute, the rest is
attached annotations.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list