Bug 14716 – recognize snprintf() in CTFE

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-20T22:04:30Z
Last change time
2024-12-13T18:43:28Z
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#19007 →

Comments

Comment #0 by bugzilla — 2015-06-20T22:04:30Z
Currently, many formatting options in std.format fail in CTFE because they are implemented using snprintf(). If CTFE can recognize those, and run snprintf() itself, a lot more code can be CTFE'able.
Comment #1 by dfj1esp02 — 2015-06-24T13:10:13Z
You mean call variadic function with common code and manual marshaling of variadic arguments?
Comment #2 by robert.schadek — 2024-12-13T18:43:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19007 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB