Re: EU feature request / Reset procedure
- Posted by CoJaBo <cojabo at suscom.net> Sep 04, 2004
- 502 views
William Heimbigner wrote: > > Hey Rob! > I was noticing, euphoria is missing something REALLY nice. > It would be nothing short of AWESOME if you could implement a reset > procedure. THis would be especially helpfull in a crash handeler. This isnt hard to do ina library, in fact, I have just made an example library that can do this: http://64.78.109.136:48620/Restart_E067F.zip (Link copyed, not typed, to avoid speling misteaks...) I might submit it to the archive later. > > I.e.: > > }}} <eucode> > include win32lib.ew > -- code creation stuff > > procedure restart_onClick(integer self, integer event, sequence params) > reset() -- Exw does any internal cleanup routines > --(as tho i had exited out of the program) > -- and then reloads the program from the > files > -- on the hard drive and begins execution > end procedure > setHandler(restart, w32HClick, routine_id("restart_onClick")) > > WinMain(Window1,Normal) > </eucode> {{{ > > That would be really nice. It would also be nice if you could come up > with SOME way of getting pointers to existing variables. I would also like > define(sequence x, sequence whattype), isdefined(sequence x), and > setval(sequence x, object val). > This would allow for: > 1.) Defining a variable by name of the var and name of the type, > 2.) Testing to see if a variable has been defined, and > 3.) Setting the value of a variable based on name. > > What do you think? > William Heimbigner > icxcnika at hotpop.com > Visit the UBoard - Forceful Signups Removed! - > <a href="http://uboard.proboards32.com">http://uboard.proboards32.com</a> - > Threaded discussion, improved searching, > human moderating, graphical smileys, better formatting abilities (now what > else was there...) > Visit my website: <a > href="http://www.geocities.com/icxcnika123">http://www.geocities.com/icxcnika123</a> > >