Skip to content

Macro default value as variable #4483

Answered by stof
VincentLanglet asked this question in Q&A
Discussion options

You must be logged in to vote

This should stay like that. Supporting variables in default values would require defining in which scope they are resolved.

Note that PHP also enforces constant expressions in default values.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by VincentLanglet
Comment options

You must be logged in to vote
3 replies
@VincentLanglet
Comment options

@stof
Comment options

stof Nov 29, 2024
Collaborator

@VincentLanglet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants