D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7977 - FormatString grammar is incomplete
Summary: FormatString grammar is incomplete
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: bootcamp
Depends on:
Blocks:
 
Reported: 2012-04-23 14:20 UTC by Martin Nowak
Modified: 2019-02-06 23:01 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2012-04-23 14:20:58 UTC
// some missing grammar cases
- %1$(%s %)
- %(%s %| %)
- %10(%s %)  // width doesn't seem to work
Comment 1 hsteoh 2019-02-06 23:01:39 UTC
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.