Yes, I know. Unfortunately your old half-baked solutions have bitten more people than you.. :\ The prime example is the cyclic resolver issues in the compiler and the decoder - layer upon layer upon layer of ever more elaborate kludges, and it still don't work all the time.
Hmm... What happens if the object we are returning from is already destructed? In that case, program will be freed directly from really_free_pike_frame, won't it?
Good point. Looks like we need something like a destruct_programs_to_destruct then. Or make a fake object for the program and directly link it into the objects_to_destruct list. :P
/ Martin Stjernholm, Roxen IS
Previous text:
2003-08-09 01:58: Subject: Machine code efficiency
A word of caution: I've made very similar arguments in the past, and more often then not, it has come back to bite me on the ass afterwards. Hopefully your kluge will work though. :)
Hmm... What happens if the object we are returning from is already destructed? In that case, program will be freed directly from really_free_pike_frame, won't it?
/ Fredrik (Naranek) Hubinette (Real Build Master)