New Lookup Table (MixString)
Salih Dincer
salihdb at hotmail.com
Sun Sep 3 10:43:53 UTC 2023
On Sunday, 3 September 2023 at 10:36:58 UTC, Salih Dincer wrote:
> For-example:
> ```d
> enum abece
> {
> b =
> "AEINRLİDKMUYTBSOÜŞZGÇHĞVCÖPFJXWÂÎÛĖĀĪŪĦŜŊĠŻṬẒḲĮ".to!(wchar[]),
> k =
> "aeınrlidkmuytbsoüşzgçhğvcöpfjxwâîûėāīūħŝŋġżṭẓḳį".to!(wchar[]),
> ele = "gusiocCOISUG".to!(wchar[])
> }
>
> void main()
> {
> alias MSbyk = MixString!(wchar, abece.b);
> enum bütünSözlük =
> "aeınrlidkmuytbsoüşzgçhğvcöpfjxwâîûėāīūħŝŋġżṭẓḳį"; //
> abece.k.to!string;
```
I wonder why I can't use abece.k directly. The error it gives is
as follows:
> core.exception.ArrayIndexError at newLookupTable.d(39):
> index [1] is out of bounds for array of length 1
SDB at 79
More information about the Digitalmars-d
mailing list