Bug 21736 – Support struct in typesafe variadic function

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-19T19:22:10Z
Last change time
2024-12-13T19:15:15Z
Keywords
spec
Assigned to
No Owner
Creator
anonymous4
See also
https://issues.dlang.org/show_bug.cgi?id=5095
Moved to GitHub: dmd#19890 →

Comments

Comment #0 by dfj1esp02 — 2021-03-19T19:22:10Z
struct A { int a; } int f(A a...){ return a.a; } static assert(f(4)==4); //not callable Typesafe variadic functions are supported with classes, but not with structs. Is there a reason for this limitation?
Comment #1 by robert.schadek — 2024-12-13T19:15:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19890 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB