www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23020] New: pragma(printf) should warn for %*.s


          Issue ID: 23020
           Summary: pragma(printf) should warn for %*.s
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

Because it's most likely a typo. The common case is %.*s to print a slice
passed as length + ptr. 

%*.s is equivalent to %*.0s and specifies "Print zero characters from the
string padded to a runtime width"

Apr 15 2022