Re: speed of eu 2.5 + dynamic inclusion
- Posted by Alexander Toresson <toressonodakra at swipnet.se> Nov 24, 2004
- 1024 views
Juergen Luethje wrote: > > Alexander Toresson wrote: > > > Juergen Luethje wrote: > >>> The only way I can think of is the program reads the include file, and > >>> if wrong, rewrites it and restarts the whole program from scratch. > >> > >> Yes, that will probably work, too. > >> > > > > But what if the wrong include file causes the program to crash? > > This should preferably be avoided. > Maybe the safest way would be, that the include file initially dosn't > contain any code at all. The file must exist, but it has a size of 0, > or only contains a comment. Then the program dynamically writes the > actual include file as intended, and restarts itself. > > Or if a wrong include file causes the program to crash (A include file > dynamically written by the program also can contain a bug!), maybe this > problem can be solved using the new crash_routine() in Eu 2.5? The > crash_routine() writes a new include file, and then restarts the program? > I haven't tetsted it myself yet, but there might be some interesting > possibilities. > Personally I don't like eu2.5, and so I don't want to 'lock' myself to it by using the few good new features. /Lex Shhh! Be vewy quiet! I'm hunting wuntime ewwows!