https://issues.dlang.org/show_bug.cgi?id=17378
Issue ID: 17378
Summary: Allow multiple arguments for assert and static assert
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
This is for consistency with pragma(msg) and developer and build efficiency
(because std.string.format would not be needed anymore).
void main() {
pragma(msg, "hi ", 42);
// static assert(false, "wat ", 43);
// assert(false, "why ", 44);
}
The commented-out lines should be compilable and output "wat 43" and "why 44"
respectively.
Ali
--