On 2013-01-05 15:13, Philippe Sigaud wrote:
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 ...
Just for the record, the extra parentheses are not needed:
@doc("This function does.... ") auto foo () { }
@Sorted!(withThisFun) someRange ...
--
/Jacob Carlborg