Voldemort toHexString Compile Error
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Mar 17 16:48:23 UTC 2024
On 18/03/2024 5:45 AM, kdevel wrote:
> On Sunday, 17 March 2024 at 13:08:14 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> It is because Hex is nested, it has an outer pointer to the call frame
>> of toHexString.
>>
>> Make Hex static, and it works.
>
> Not really. Have you ever tried?
>
> "abc äöü߀ D".toHexString.writeln;
>
I did run it, both with and without static on Hex.
Without did not work on run.dlang.io which was consistent with the error
that Salih had provided.
The error is clear on the first line: "cannot access frame pointer of
onlineapp.toHexString.Hex"
More information about the Digitalmars-d
mailing list