Skip to content
Discussion options

You must be logged in to vote

I think your solution is correct. Only for operator overloading to work, compiler needs to know the types of variables on compile time.
You can do this by collecting all variable names from expressions and setting correct types, and by setting expr.AllowUndefinedVariables()

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ForeverCzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #818 on September 18, 2025 12:16.