Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

setjmp/longjmp exist in a lot of real world C code, so there is a lot of value in allowing rust to deal with longjmp in a defined way at least in some narrow cases.

And I don't think it's impossible -- it probably requires some special wrappers (perhaps bindgen could generate them?) that would call setjmp before entering the C code. setjmp has its own set of problems, but I don't believe those are impossible to solve, either.



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

Search: