www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23854] New: Compiler hooks for decoding of strings with

https://issues.dlang.org/show_bug.cgi?id=23854

          Issue ID: 23854
           Summary: Compiler hooks for decoding of strings with foreach is
                    not templated
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

Some more compiler hooks that need converting to templates, with an example use
case:

```d
extern(C) void main() {
    string str = "Abc";
    foreach(dchar c; str) {
    }
}
```

Compile with -betterC:

undefined reference to `_aApplycd1'

All in rt/aApply.d

--
Apr 23 2023