A Small Enhancement Idea

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 2 10:03:16 PDT 2015


On Wednesday, 2 September 2015 at 16:40:04 UTC, ponce wrote:
> On Wednesday, 2 September 2015 at 16:28:12 UTC, Jack Stouffer 
> wrote:
>> I wanted some second opinions on an idea I had for D before I 
>> made a bugzilla issue.
>>
>> Currently in D, to have a statement run only in debug mode, 
>> you can mark it with the debug keyword. But, there is 
>> currently no way to mark a statement so that it only runs in 
>> release. So what I propose is a release statement like so:
>>
>
> -release and -debug are decorrelated. Your program can have 
> both switch or none of them.

I know. That doesn't somehow invalidate this idea.


More information about the Digitalmars-d mailing list