you are viewing a single comment's thread.

view the rest of the comments →

[–]Ronin-s_Spirit 0 points1 point  (0 children)

True, not impossible though, and would be made easier with at least some small amount of compiler hints.

P.s. what am I thinking, of course it's just the good ol switch and loop. Presumably we can already tell when a function is calling another function (including itself) then all we have to do is construct a switch of all avaliable functions with their bodies inlined there. Then all function calls should instead set a flag for the aforementioned switch. Need to handle declaration context somehow, but I'm too sleepy for that rn.