dom96 / nimbox

Fork of https://notabug.org/vktec/nimbox
30 stars 4 forks source link

Replace wrap all code in each example inside a proc #10

Closed jonathanabennett closed 5 years ago

jonathanabennett commented 5 years ago

This is done to address issue #9. Based on the language manual, the defer keyword is not supported at the top level. But defer is used to ensure that nimbox cleans up after itself when it is finished. Therefore we need to wrap the call to defer inside a proc.

dom96 commented 5 years ago

Thanks!