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
Right now, we have no way to generate a value main definition.
I think I want to solve this by requiring a def main() with zero parameters. Then during codegen we can special-case main and generate it to return an int (maybe casting the function body’s result?). That way we can actually execute the resulting code.
The text was updated successfully, but these errors were encountered:
Right now, we have no way to generate a value
main
definition.I think I want to solve this by requiring a
def main()
with zero parameters. Then during codegen we can special-casemain
and generate it to return an int (maybe casting the function body’s result?). That way we can actually execute the resulting code.The text was updated successfully, but these errors were encountered: