So, User-Defined Attributes
Philippe Sigaud
philippe.sigaud at gmail.com
Sat Jan 5 06:13:50 PST 2013
Clojure uses its metadata (attached to values, though, not declaration) to
put documentation strings there.
That's quite doable with D:
@(doc("This function does.... "))
auto foo()
{ ... }
I'm also interested in tagging data:
@(Sorted!(withThisFun)) someRange ...
@(Ranged(0.0, 1.0)) someRange ...
or:
@Validated SQLQuery query;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130105/056b0216/attachment.html>
More information about the Digitalmars-d
mailing list