Bug 20007 – Add the `__COUNTER__` special keyword

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-26T10:30:07Z
Last change time
2024-12-13T19:04:22Z
Keywords
pull
Assigned to
No Owner
Creator
basile-z
Moved to GitHub: dmd#19595 →

Comments

Comment #0 by b2.temp — 2019-06-26T10:30:07Z
Comment #1 by dlang-bot — 2019-06-26T11:07:43Z
@Basile-z created dlang/dmd pull request #10093 "fix issue 20007 - Add a compiler trait allowing to obtain unique identifiers" fixing this issue: - fix issue 20007 - Add a compiler trait allowing to obtain unique identifiers The trait exposes the `Identifier.generateId` overload taking a prefix, allowing to get unique identifier in metaprog code, just like when the compiler does AST rewrites or when it generate temporaries. https://github.com/dlang/dmd/pull/10093
Comment #2 by dlang-bot — 2019-07-06T05:59:37Z
@Basile-z updated dlang/dmd pull request #10131 "fix issue 20007 - Add the `__COUNTER__` primary expression" fixing this issue: - fix issue 20007 - Add a new expression similar to the C `__COUNTER__` macro https://github.com/dlang/dmd/pull/10131
Comment #3 by robert.schadek — 2024-12-13T19:04:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19595 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB