What am I doing wrong here?

JG someone at somewhere.com
Fri May 6 19:05:11 UTC 2022


On Friday, 6 May 2022 at 18:35:40 UTC, Ali Çehreli wrote:
> On 5/6/22 11:04, JG wrote:
> > [...]
>
> This is a segmentation fault. Reduced:
>
> import std;
>
> [...]

Hi, thanks. That was quite silly. (I was thinking the variable 
lives to the end of  scope of main but not thinking about that I 
am passing by value).


More information about the Digitalmars-d-learn mailing list