Proposal: user defined attributes
Jacob Carlborg
doob at me.com
Wed Mar 21 14:38:30 PDT 2012
On 2012-03-21 22:32, Steven Schveighoffer wrote:
> What I envision is that @makeAPoint translates to the CTFE engine
> calling makeAPoint with no arguments. This returns a Point2d default
> initialized. That result is stored in the TypeInfo (or ModuleInfo) in
> the appropriate location for the 'x' member.
>
> Then you can query this using runtime or compile-time functions later
> on, using the name "makeAPoint".
That sounds like a pretty good idea. Many good ideas have popped up in
this thread. It's hard to know which would work best.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list