-debug and -release
Derek Parnell
derek at nomail.afraid.org
Sun May 27 19:10:18 PDT 2007
On Mon, 28 May 2007 08:09:39 +1000, Derek Parnell wrote:
Furthermore, to illustrate the similarities between -version and -debug ...
module xyz;
debug { import std.stdio; }
void main()
{
debug { std.stdio.writefln("Starting"); }
}
----------
dmd -debug xyz.d
is identical in function to ...
module xyz;
version(debug) { import std.stdio; }
void main()
{
version(debug) { std.stdio.writefln("Starting"); }
}
----------
dmd -version=debug xyz.d
So it could be said that "-debug" is sort of a shorthand for
"-version(debug)".
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Justice for David Hicks!"
28/05/2007 11:52:15 AM
More information about the Digitalmars-d
mailing list