Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How to make closures in C [gist example] (gist.github.com)
3 points by addisaden on May 16, 2014 | hide | past | favorite | 3 comments


After a little review and test i found that this fails.

calling the generated greeting method multiple times would fail. This throws an segmentation fault error.

sorry for this wrong thread.

https://gist.github.com/addisaden/d89c7eaed520a2a8c3a1#file-...


OK, but nested functions are not allowed in standard C.


Thank you for your Feedback :) Would i get in trouble, when i use this in the future?

My experience is not so high on C.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: