funny_falcon
Joined 14 years ago
Karma
61
Submissions
78
Member since
Oct 23
Joined 14 years ago
returns_struct looks actually correct to me, ie it is expected (by me). Golang's defer works this way.
Do both examples follow standard? Or is it common misinterpretation by all compilers?
https://github.com/ruby/ruby/commit/b3b5e626ad69bf22be3228f8...
Edit: the commit https://github.com/ruby/ruby/commit/b3b5e626ad69bf22be3228f8...
Built-in is also possible: just fork once after start, and you have parent as watchdog and restarter.