We also should ask people to use the main proc even when they do when
isMainModule, because that doesn't introduce any new scopes, so we should
advise to do something like
proc main =
echo "hi"
when isMainModule:
main()
Run
- Why does wrapping the code in a top level procedure make i... didlybom
- Re: Why does wrapping the code in a top level procedu... juancarlospaco
- Re: Why does wrapping the code in a top level pro... didlybom
- Re: Why does wrapping the code in a top level... Araq
- Re: Why does wrapping the code in a top l... didlybom
- Re: Why does wrapping the code in a ... Stefan_Salewski
- Re: Why does wrapping the code i... Yardanico
- Re: Why does wrapping the co... cblake
- Re: Why does wrapping the co... Stefan_Salewski
- Re: Why does wrapping the co... cblake
- Re: Why does wrapping the co... HashBackupJim
- Re: Why does wrapping the co... cblake
- Re: Why does wrapping the co... Araq
- Re: Why does wrapping the co... HashBackupJim
- Re: Why does wrapping the co... cblake
- Re: Why does wrapping the co... jackhftang
