A Small Enhancement Idea
jmh530 via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 2 12:15:06 PDT 2015
On Wednesday, 2 September 2015 at 17:14:27 UTC, Gary Willoughby
wrote:
> On Wednesday, 2 September 2015 at 17:03:18 UTC, Jack Stouffer
> wrote:
>> 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.
>
> H. S. Teoh's answer does.
I wasn't familiar with version(release). Would you need to
compile with -version=release then?
More information about the Digitalmars-d
mailing list