www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22503] New: dmd 2.098.0: undefined identifier

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

          Issue ID: 22503
           Summary: dmd 2.098.0: undefined identifier `isValidCharacter`
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: kdevel vogtner.de

According to

   https://dlang.org/changelog/2.098.0.html#add_isValidCharacter

there is a new function in std.utf named isValidCharacter.

$ dmd --version
DMD64 D Compiler v2.098.0
Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
written by Walter Bright

$ cat v.d
import std.utf;
void main ()
{
   assert(!isValidCharacter(cast(char) 0x80));
}

$ dmd v
v.d(4): Error: undefined identifier `isValidCharacter`

--
Nov 11 2021