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
Currently, the code is all set up to make default parameter values instantiate in the scope of the caller, which is frankly a bit silly.
To fix this:
Change the format of the CALL/CALLSTATIC instruction, so that the argument list may have nulls in it. A null indicates to the callee that it needs to give it a default value before running its code.
Change TyphonCompiler to just add nulls to the list instead of assigning to its internal variables. (It's only a TODO at this point, but remove the TODO.)
Check TyphonCompiler to make sure default parameters are being made into code blocks in that step.
In TnBox, before a function is executed, we can now run any default parameter code needed.
Minor things to do after this change include:
Change TyphonAnnotChecker so that parameters with the override annotation are allowed to have default values.
The text was updated successfully, but these errors were encountered:
Currently, the code is all set up to make default parameter values instantiate in the scope of the caller, which is frankly a bit silly.
To fix this:
Minor things to do after this change include:
The text was updated successfully, but these errors were encountered: