`static` function ... cannot access variable in frame of ...

Bastiaan Veelo Bastiaan at Veelo.net
Tue Jan 16 09:53:24 UTC 2024


On Monday, 15 January 2024 at 23:06:00 UTC, Steven Schveighoffer 
wrote:
> As a workaround, you can alias the outer function in the struct:
>
> ```d
> struct S
> {
>     alias foo = S_foo;
> }
> ```
>
> This might be less than ideal, but at least it works.

It does! And it's good enough for me. Thanks a lot!

-- Bastiaan.


More information about the Digitalmars-d-learn mailing list