You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depends on how arithmetic expressions in const-evaluation expressions have been implemented.
Behaviour
Adds a new expression with the same syntax as arithmetic integer expressions. If the first part of the expression is a string (or a constant coercing to a string) then this new expression applies.
The result of the expression is a string where all strings in it are combined into one. The combining operator is "+". Any integers or decimals as part of the expression are converted into their string representations. Constants and variables are evaluated before concatenations. As always any part of the expression can be a sub-expression.
Compiler Implementation
Compiler Interface Changes
None
Decompiler Changes
None
How to teach
Add to manual on meta programming
Alternatives
/
Backwards compatibility
None
The text was updated successfully, but these errors were encountered:
Summary
Allows strings to be concatenated in const-evaluation expressions
Dependencies
This needs the following features to be implemented first:
Motivation
This allows for meta programming with strings.
Examples
Language Changes
Parser and Lexer Changes
Depends on how arithmetic expressions in const-evaluation expressions have been implemented.
Behaviour
Adds a new expression with the same syntax as arithmetic integer expressions. If the first part of the expression is a string (or a constant coercing to a string) then this new expression applies.
The result of the expression is a string where all strings in it are combined into one. The combining operator is "+". Any integers or decimals as part of the expression are converted into their string representations. Constants and variables are evaluated before concatenations. As always any part of the expression can be a sub-expression.
Compiler Implementation
Compiler Interface Changes
None
Decompiler Changes
None
How to teach
Add to manual on meta programming
Alternatives
/
Backwards compatibility
None
The text was updated successfully, but these errors were encountered: