Local variable disappears.
bauss
jacobbauss at gmail.com
Mon Dec 22 16:54:56 UTC 2025
On Monday, 22 December 2025 at 13:53:54 UTC, SarK0Y wrote:
> **Hi there, my Dear Fellows.**
>
> i been encountering w/ strange issue..
> [ret_emp __emp
> (..)](https://github.com/SarK0Y/DLang/blob/b8e8bb39dda4b5180218998f4700940e218b46f4/source/emp.d#L108)
> ...
> [line
> 126](https://github.com/SarK0Y/DLang/blob/b8e8bb39dda4b5180218998f4700940e218b46f4/source/emp.d#L126)
> ```D
> /**********/
> map.name = "name1"; //runs fine
> *map = 0;
> map.prnt;
> simply_print_time ("start tst for __emp");
> map.prnt; // SIGSEGV
> /*************/
> ```
> Any ideas???
>
>
> **|||||||||||||||Thanks a lot in Advance.**
> ==================
You have this wonderful line nuking your memory:
```
*map = 0;
```
More information about the Digitalmars-d-learn
mailing list