6 ms·
Looks more like an implementation of undefined behaviour to me.
by vasama 7y ago
Looks more like an implementation of undefined behaviour to me.
- monocasa 7y agoThe underlying implementations define the behavior here very well.
- fanf2 7y agoWell, I would not go that far. My coroutine hack relies on “unwarranted chumminess with the implementation” (http://c-faq.com/struct/structhack.html http://c-faq.com/struct/structhack.html) and there are lots of incidental things that can break it. It is best treated as an example of the principles of thread switching and stack allocation.
- craftinator 7y agoDon't be an ass you 'fiber' cretin.
- dang 7y ago"Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something." https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html