enum true, or 1
Ali Çehreli
acehreli at yahoo.com
Fri Jul 23 18:48:34 UTC 2021
On 7/22/21 1:44 PM, Brian Tiffin wrote:
> So would there be any cringes
Not from me. :)
> seeing a skeleton D source file that
> always ended with
>
> ~~~d
> /++
> Disclaimer
>
> This software is distributed in the hope that it will be useful, but
> WITHOUT ANY WARRANTY; direct or indirect, without even the implied
> warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> +/
> enum INDEMNITY = true;
> ~~~ ??
>
> The goal is attaching backmatter doc comments to a declaration that
> follows without being too intrusive.
I don't feel qualified to comment on such a topic but it looks fine.
Perhaps INDEMNIFIED is more grammatically correct but weirder too. :)
Ali
More information about the Digitalmars-d-learn
mailing list