stack out of scope ?
ag0aep6g
anonymous at example.com
Sun May 16 18:14:06 UTC 2021
On 16.05.21 19:24, Alain De Vos wrote:
> On Sunday, 16 May 2021 at 16:58:15 UTC, H. S. Teoh wrote:
[...]
>> Though I believe if you compile with -dip25 -dip1000 the compiler
>> should emit an error for the above code. If not, please file a bug
>> against -dip1000.
>>
>>
>> T
>
> I use ldc2. No dip flags here.
ldc2 understands `-dip1000`. It also understands the newer
`-preview=dip1000`.
More importantly, the code needs to be @safe. @system code is not
checked for this kind of error.
More information about the Digitalmars-d-learn
mailing list