Skip to content

Commit

Permalink
add __rvalue(expression) builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Nov 3, 2024
1 parent f713bd3 commit 5dfe3dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/src/dmd/tokens.d
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ enum TOK : ubyte
typeof_,
pragma_,
typeid_,
rvalue,
comment,

// Operators
Expand Down Expand Up @@ -314,6 +315,7 @@ enum EXP : ubyte
declaration,
dSymbol,
typeid_,
rvalue,
uadd,
remove,
newAnonymousClass,
Expand Down Expand Up @@ -460,6 +462,7 @@ private immutable TOK[] keywords =
TOK.pragma_,
TOK.typeof_,
TOK.typeid_,
TOK.rvalue,
TOK.template_,
TOK.void_,
TOK.int8,
Expand Down Expand Up @@ -680,6 +683,7 @@ extern (C++) struct Token
TOK.pragma_: "pragma",
TOK.typeof_: "typeof",
TOK.typeid_: "typeid",
TOK.rvalue: "__rvalue",
TOK.template_: "template",
TOK.void_: "void",
TOK.int8: "byte",
Expand Down

0 comments on commit 5dfe3dc

Please sign in to comment.