Is it legal to place a UDA on a module?

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 20 07:23:12 PDT 2016


On 2016-06-20 11:59, Nicholas Wilson wrote:
> as in
>
> @myattr
> module foo;
>
> not
> module foo;
> @myattr:

No, I don't think so. Because "module" can only appear the the top of 
the file (except for comments).

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list