On Sat, Jan 5, 2013 at 6:00 PM, Jacob Carlborg <[email protected]> wrote:
> Just for the record, the extra parentheses are not needed:
>
> @doc("This function does.... ") auto foo () { }
> @Sorted!(withThisFun) someRange ...
Good to know. I tested it with basic values and this fails:
@"hello" int i;
@3 inj j;
Worth a bug report?
As a complement, multiple @'s are possible:
@("hello") @(3) int j;
And another complement:
struct S {}
@S S s; is possible.
But
@int S s;
is not
So user-defined types are OK, but not basic types. Looks like a
parsing/grammar problem for me, since attribute tuple sure should be able
to store built-in types.
Another bug report?