Re: eu.ex
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Nov 19, 2004
- 497 views
Robert Craig wrote: > > You just have to edit execute.e, and add some more 1-argument > call_backs. They're 3-lines of code each. If you let me know > how many you ended up needing, I could add that to my version > of the PD source for the beta. > > I set up execute.e to easily handle Judith's IDE and > most other Windows programs. That's why there are lots of 4-argument > call-backs. You can add as many call-backs > as you like, but the number will always be fixed for each > number of arguments. In my C-coded back-end I have some > weird code that actually manufactures new call-back subroutines > at run-time, so I will never run out. I didn't see an easy way > to do that in Euphoria. I posted about this yesterday. The only way that I see to make it 100% is to use some assembly routines that could be allocated dynamically, and that would call a 'generic' callback. The true callback could be stored in memory somewhere, so that you don't have to lose the last argument in the case of a 9 argument call back. I'm not sure when I'll have a chance to work this out, but if anyone's interested, fptr.e is a good place to start. Matt Lewis