Transferring 32 bits
Salih Dincer
salihdb at hotmail.com
Thu Aug 25 12:22:56 UTC 2022
On Thursday, 25 August 2022 at 12:18:19 UTC, Salih Dincer wrote:
>
> Everything is fine with the constructor but I can't keep the
> object alive with the foo() convenience function!
```d
string foo(char[size] bytes)
{
scope res = new S(bytes);
return res.toString(); // problem here
}
```
**One more thing:**
It's ok when I construct S with the new operator!
SDB at 79
More information about the Digitalmars-d
mailing list