Bug 24539 – __traits(identifier, …) should work with sequences

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-05-06T12:09:14Z
Last change time
2024-12-13T19:35:07Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#20451 →

Comments

Comment #0 by qs.il.paperinik — 2024-05-06T12:09:14Z
If the argument of `__traits(identifier)` is a sequence or simply multiple arguments, it should return either a sequence or array of the individual identifiers. Alternatively, add a new trait, `__traits(identifiers)` (with a plural-s), that takes as arguments and returns sequences.
Comment #1 by nick — 2024-05-06T12:14:22Z
Why?
Comment #2 by robert.schadek — 2024-12-13T19:35:07Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20451 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB