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
{$CLEO}
int x = 0
int y = 1
0AB1: cleo_call @fn 0
// cleo_call creates a local scope
:fn
int y = 1 // this is not the same 'y' as defined in the outer scope
cleo_return 0
Activity
x87 commentedon Jun 6, 2021
@HzanRsxa2959 I think I understand what you are asking for, but can you please provide a few code examples where scoped variables are used?
HzanRsxa2959 commentedon Jun 6, 2021
@x87 Here is some example code with the issues commented:
https://pastebin.com/9CyWwS38
Tested on Sanny Builder 3.7.0 released on 2021-1-30.
EDIT:
Also, I can't think of any example where nesting is necessary at all for scopes, at least in SCM.
x87 commentedon Sep 2, 2023
another example
x87 commentedon Jan 12, 2024
This is solved in 4.0 with the introduction of function syntax #263
x87 commentedon Aug 7, 2024
released in 4.0.0