Open tchaloupka opened 5 years ago
Hi, I've found that this code:
import std.stdio; void test(ubyte[] args...) { writeln(args ? true : false); } void main() { test(); }
Yelds these results with dmd (tried with run.dlang.org):
Up to 2.066.0: Success with output: true Since 2.067.1: Success with output: false
But ldc2 outputs true so the argument array !is null
true
!is null
The issue is that we use undef as pointer for the 0-length array.
undef
Hi, I've found that this code:
Yelds these results with dmd (tried with run.dlang.org):
But ldc2 outputs
true
so the argument array!is null