A Small Enhancement Idea
ponce via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 2 09:41: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.
And here is the answer to your next question: so what does
-release do exactly?
http://p0nce.github.io/d-idioms/#So-what-does--release-do,-exactly?
More information about the Digitalmars-d
mailing list