Replies: 6 comments
-
yeah,i like this function,it is so cool. |
Beta Was this translation helpful? Give feedback.
-
In order to adapt to intelligent grammar tips, I think we should use the following grammar defer(function() Lua needs him so much |
Beta Was this translation helpful? Give feedback.
-
yeah ,without defer , program may not close mysql handler when got an error: |
Beta Was this translation helpful? Give feedback.
-
@dukv2001 but as you know , gopher-lua is build with go fully, without any other language code, maybe it is diffcat~ to put this function to it |
Beta Was this translation helpful? Give feedback.
-
No, it needs to be supported in the language. External functions can't |
Beta Was this translation helpful? Give feedback.
-
已经实现了这个功能,并且带智能提示 |
Beta Was this translation helpful? Give feedback.
-
Please answer the following before submitting your issue:
function foo()
defer
print 'defer 1'
end
end
https://github.com/peete-q/lua-defer
Beta Was this translation helpful? Give feedback.
All reactions