add attributes to debug

Gorge Jingale via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 24 19:16:36 PDT 2016


On Monday, 25 July 2016 at 02:13:34 UTC, Adam D. Ruppe wrote:
> On Sunday, 24 July 2016 at 21:33:20 UTC, Gorge Jingale wrote:
>> To allow for different debug versions without having to go 
>> full blown version().
>
> debug(whatever) thingy_here();
>
> dmd -debug=whatever yourfile.d
>
>
> works today.

You can't combine attributes:

@mem @see debug() { prints debug info }

Attributes are useful are they not?



More information about the Digitalmars-d mailing list