-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
This issue was originally filed by zundel@google.com
There is no mention in the spec of evaluating final variables in a particular order, so test cases have been added to use final variables in an expression before they are declared. This is turning out to be difficult to implement, so I was looking for a way out in the spec, but didn't find one - drat.
If that is the correct interpretation, the ability to use variables before they are referenced opens up the possibility of circular dependencies between expressions that isn't possible in many other languages. I was thinking that the spec might want to mention that circular definitions in CTConstant expressions are illegal. We certainly want those expressions to be defined explicitly (a compile time error).