Would it be appropriate for the following two to behave differently?
I think both should be NG for the same reasons.
https://run.dlang.io/is/X7Xf8l
```
import std;
import core.stdc.stdlib;
void main() @live {
auto p = cast(byte*) malloc(10);
scope(exit) free(p);
scope ps = p[0 .. 10];
writeln(ps); // NG
//writelns(ps); // OK
}
void writelns(Args)(scope Args args...)
{
writeln(args);
}
```
Comment #1 by robert.schadek — 2024-12-13T19:08:34Z