How to make closures in C [gist example](gist.github.com)3 points·by addisaden·12 yıl önce·3 commentsgist.github.comHow to make closures in C [gist example]https://gist.github.com/addisaden/d89c7eaed520a2a8c3a12 commentsPost comment[–]addisaden·12 yıl öncereplyAfter 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-...[–]piokuc·12 yıl öncereplyOK, but nested functions are not allowed in standard C.[–]addisaden·12 yıl öncereplyThank you for your Feedback :) Would i get in trouble, when i use this in the future?My experience is not so high on C.
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-...