dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Nov 10 12:25:03 UTC 2021


On Wednesday, 10 November 2021 at 11:47:16 UTC, Guillaume Piolat 
wrote:
> import("file.stuff") yields string.
> So there is at least one gap, as it is often used with binary 
> files that ain't UTF-8.

Maybe a «binary_import!T("file.data")» that yields slice of type 
T?




More information about the Digitalmars-d mailing list