User Defined Attributes
Jacob Carlborg
doob at me.com
Wed Nov 14 07:04:42 PST 2012
On 2012-11-14 14:28, Tove wrote:
> // in this nested scope, all uints are interpreted as belonging to the
> thrift module.
> [std.attributes(uint, thrift)]
> struct UserProfile
> ...
>
> // error detected at compile-time
> [std.attributes(uint, thrift), std.attributes(uint, thrift2)]
> struct UserProfile
> ...
That doesn't sound like a very good idea. I think it's better to not use
raw ints.
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list