Is it acceptable to not parse unittest blocks when unittests are disabled ?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 30 07:28:41 PDT 2017


On Wednesday, 29 March 2017 at 19:32:50 UTC, Vladimir Panteleev 
wrote:
> Sorry, is this not already the case?
>
> $ dmd test.d
> $ cat test.d
> void main()
> {
> 	import std.stdio;
> 	writeln("Hello, world!");
> }
>
>
> unittest
> {
> 	foo bar {} baz more-syntax!errors)blah
> }
> $ dmd test.d
> $ ./test
> Hello, world!

Alright then, it looks like it is :)

I was asking for SDC.



More information about the Digitalmars-d mailing list