Bug 7977 – FormatString grammar is incomplete

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-23T14:20:58Z
Last change time
2019-02-06T23:01:39Z
Keywords
bootcamp
Assigned to
No Owner
Creator
Martin Nowak

Comments

Comment #0 by code — 2012-04-23T14:20:58Z
// some missing grammar cases - %1$(%s %) - %(%s %| %) - %10(%s %) // width doesn't seem to work
Comment #1 by hsteoh — 2019-02-06T23:01:39Z
Appears to have been fixed in the latest docs (https://dlang.org/phobos-prerelease/std_format#.formattedWrite). %(...%) is now separately defined, and does not allow arbitrary modifiers like width or positional arguments.