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
Here, &a refers to the return storage of the something function, but since that function has been called since we assigned to it, the value is now different to what it would have been if accessed earlier. The above code doesn't make much sense to be valid, so we should probably disallow it. There are a few such similar example which we need to decide how to handle.
The text was updated successfully, but these errors were encountered:
At the moment, you can assign any expression to a compile-time variable. This allows for some weird behaviour:
Here,
&a
refers to the return storage of thesomething
function, but since that function has been called since we assigned to it, the value is now different to what it would have been if accessed earlier. The above code doesn't make much sense to be valid, so we should probably disallow it. There are a few such similar example which we need to decide how to handle.The text was updated successfully, but these errors were encountered: