Re: A Small Enhancement Idea

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 2 September 2015 at 19:34:53 UTC, Jack Stouffer wrote: On Wednesday, 2 September 2015 at 19:15:08 UTC, jmh530 wrote: I wasn't familiar with version(release). Would you need to compile with -version=release then? No, it seems to work with just the -release flag. The Python

Re: A Small Enhancement Idea

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
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

Re: A Small Enhancement Idea

2015-09-04 Thread Timon Gehr via Digitalmars-d
On 09/04/2015 04:53 PM, Jonathan M Davis wrote: Normally, the only code differences between release mode and non-release mode relate to extra correctness checking - like with assertions - which get stripped out in release mode for efficiency. Failing assertions have been redefined to be

Re: A Small Enhancement Idea

2015-09-03 Thread Timon Gehr via Digitalmars-d
On 09/02/2015 06:32 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, Sep 02, 2015 at 04:28:10PM +, Jack Stouffer via Digitalmars-d 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

Re: A Small Enhancement Idea

2015-09-03 Thread Timon Gehr via Digitalmars-d
On 09/02/2015 06:28 PM, 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

Re: A Small Enhancement Idea

2015-09-02 Thread H. S. Teoh via Digitalmars-d
On Wed, Sep 02, 2015 at 04:28:10PM +, Jack Stouffer via Digitalmars-d 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

A Small Enhancement Idea

2015-09-02 Thread Jack Stouffer via Digitalmars-d
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

Re: A Small Enhancement Idea

2015-09-02 Thread Jack Stouffer via Digitalmars-d
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

Re: A Small Enhancement Idea

2015-09-02 Thread ponce via Digitalmars-d
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

Re: A Small Enhancement Idea

2015-09-02 Thread ponce via Digitalmars-d
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

Re: A Small Enhancement Idea

2015-09-02 Thread Gary Willoughby via Digitalmars-d
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.

Re: A Small Enhancement Idea

2015-09-02 Thread Xinok via Digitalmars-d
On Wednesday, 2 September 2015 at 19:34:53 UTC, Jack Stouffer wrote: On Wednesday, 2 September 2015 at 19:15:08 UTC, jmh530 wrote: I wasn't familiar with version(release). Would you need to compile with -version=release then? No, it seems to work with just the -release flag. The Python

Re: A Small Enhancement Idea

2015-09-02 Thread jmh530 via Digitalmars-d
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

Re: A Small Enhancement Idea

2015-09-02 Thread Jack Stouffer via Digitalmars-d
On Wednesday, 2 September 2015 at 19:15:08 UTC, jmh530 wrote: I wasn't familiar with version(release). Would you need to compile with -version=release then? No, it seems to work with just the -release flag. The Python programmer in me hates the inconsistency between these two, but it's fine.