Hacker News new | past | comments | ask | show | jobs | submit login

> yeah you can return a new function

How?




You could do it with JIT compilation or self-modifying code. I'm not sure if there's a simpler way in C


You can exec a C compiler and use dlopen on the generated object file, or use libtcc[1].

https://www.bellard.org/tcc/




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

Search: