I just noticed this slightly odd behaviour from dmd -run and wondered if
it's a bug?
[vertest.d]
import std.stdio;
void main()
{
version(TEST) writefln(TEST);
}
If we compile without -run we get consistent/expected behaviour from
-version:
C:\TEMPdmd vertest.d -version=TEST
It does not ignore, it passes them as an arguments to resulting
program.
On Monday, 22 October 2012 at 12:36:44 UTC, Regan Heath wrote:
I just noticed this slightly odd behaviour from dmd -run and
wondered if it's a bug?
[vertest.d]
import std.stdio;
void main()
{
version(TEST)
On Mon, 22 Oct 2012 14:08:22 +0100, mist n...@none.none wrote:
It does not ignore, it passes them as an arguments to resulting program.
Ahh, of course. :p
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/