Re: call_back() etc
- Posted by Kat <KSMiTH at PELL.NET> Aug 12, 1999
- 473 views
----- Original Message ----- From: noah smith <option1 at OPTIONINTERACTIVE.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Thursday, August 12, 1999 4:39 PM Subject: Re: call_back() etc > Im almost entirely unfamiliar with win32/object oriented/dll stuff, but let > me see if I can try one more time: <snip> > What I really want to happen is for ProgA to be able to invoke Euphoria to > intrepret ProgB, and then use the functions ProgB has created. Basically, > ProgA needs the ability to temporarily add Euphoria-intepreted code from an > external file on the fly: > > Run ProgA > ProgA code > Run ProgB > Register ProgB functions/procedures with ProgA > ProgA code using ProgB functions/procedures > end ProgB > Unregister ProgB functions/procedures from ProgA > ProgA code > end ProgA > > It was suggested earlier that the new code could be added as includes to the > original code and then re-run. However, I want the ability to add several > new scripts, and to drop them quickly, without significant interruption of > the program. I can sure make use of this too. I am currently doing this with DDE in win95, but i'd prefer to do it in msdos, but at the moment, i don't have the time to write this code. In win95, if the DDE fails, it just fails, no problems,,, if it succeeds, then something happens. The DDE handles can be registered, unregistered, changed, etc,, and new instances run and killed. Maybe linux offers a better way of doing this,,, sigh, yet another porting to another OS. Also, in Mirc, i can load a script and run it, and unload it, no problem, while it is running. It's a terribly limiting "OS", it's not an OS, it's an irc client,, and i am hoping i can easily do the same things in Euphoria. One other thing i like in Mirc is the ability to build a var while it's running: set -u5 %someothervarname thisisatest set %Somevar. [ $+ [ %someothervarname ] ] any var, regardless of type. now %Somevar.thisisatest equals: any var, regardless of type. and in 5 seconds, %someothervarname is erased, set to $null, deleted, etc and: unset %Somevar.* will set to $null, erase all variables with names beginning with '%Somevar.". I figure i can pull it off using sequences in Eu. Mirc is incredibly slow and memory limiting in storing variables. Has anyone already done this? An easier timer interface, like mirc has, would be nice also. Kat, still exploring for that perfect programming language.