[Issue 24208] [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Paul Backus changed: What|Removed |Added Summary|[DIP1000] Nested function |[DIP1000] Nested function

[Issue 24208] [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 --- Comment #1 from Paul Backus --- Actually, it turns out the second function is not necessary: --- void main() @safe { int* escaped; void escape(int* p) @safe { escaped = p; } int n; escape(); assert(escaped

[Issue 24208] [DIP1000] Nested function can pass scope pointer to non-scope parameter

2023-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24208 Paul Backus changed: What|Removed |Added Keywords||accepts-invalid, safe --