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
procedure main() returns integer {
var integer x = 1;
call increment(x);
x -> std_output;
'\n' -> std_output;
return 0;
}
procedure increment(var integer x) {
x = x + 1;
}
//CHECK:CallError on line 3
//CHECK:
The reference compiler doesn't see this as an issue, and continues compilation. However, if this is allowed, why are procedure prototypes a feature as well if the position of the procedure to be called is not reinforced?
Activity