Thread overview | |||||
---|---|---|---|---|---|
|
February 18, 2021 [Issue 21645] template value argument capriciously rejects class objects literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21645 --- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> --- I suspect the reason has to do with mangling the class values, but it isn't that different than a struct, so I don't think it is fundamentally problematic. Another related problem is that `enum Object o = new Object;` is not allowed, since then you'd have questions of Object aliasing at runtime (arrays are arguably similar but they solve it by reallocating for each use, so perhaps a class could do that too, but I also don't think this is required at all since a template can just use it at CTFE then export it as `static` instead of `enum`). -- |
December 17, 2022 [Issue 21645] template value argument capriciously rejects class objects literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21645 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
December 13 [Issue 21645] template value argument capriciously rejects class objects literals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21645 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18023 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation