Re: Is it legal to place a UDA on a module?

2016-06-20 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 20 June 2016 at 19:14:42 UTC, Jacob Carlborg wrote: On 2016-06-20 16:23, Jacob Carlborg wrote: 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 f

Re: Is it legal to place a UDA on a module?

2016-06-20 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-06-20 16:23, Jacob Carlborg wrote: 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). My mistake. It _is_ actually possible. It just loo

Re: Is it legal to place a UDA on a module?

2016-06-20 Thread Jacob Carlborg via Digitalmars-d-learn
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

Is it legal to place a UDA on a module?

2016-06-20 Thread Nicholas Wilson via Digitalmars-d-learn
as in @myattr module foo; not module foo; @myattr: