Make shared static this() encoding table compilable
Patrick Schluter
Patrick.Schluter at bbox.fr
Thu Mar 17 12:19:36 UTC 2022
On Thursday, 17 March 2022 at 12:11:19 UTC, Patrick Schluter
wrote:
> On Thursday, 17 March 2022 at 11:36:40 UTC, Patrick Schluter
> wrote:
>> [...]
> Something akin to
> ```d
> auto lookup(ushort key)
> {
> return cp949[key-0x8141];
> }
>
> [...]
Takes 165 ms to compile with dmd 2.094.2 -O on [godbolt] with the
whole table generated from the Unicode link.
[godbolt]: https://godbolt.org/z/hEzP7rKnn]
More information about the Digitalmars-d-learn
mailing list