| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Helpppp!!! |
There are a whole lot of superb reasons why code (the instruction set) should never modify itself----if its compiled into an exe file. That was just as true for OS/2 as it was for DOS---but ALOT of DOS programmers did it any way because either they didn't know any better or it was convenient and DOS let them do it. I actually can't think of any programming problem where there isn't a better way to approach the problem. If you feel that your particular problem has no other solution than to change the exe file, please post it here so we may all be enlightened on it. If you are changing the instructions set while the program is executing then what you are really doing is "interpreting" the instructions. The right way and the safe, clean way to do this is to compose your program into 2 parts: 1) the exe file as an interpreter of 2) data which are in fact instructions that can be created and executed on the fly. In other word, write yourself an interpreter. This is neither unusual or particularly difficult, and it will save you and your users alot of grief. Other approaches that might work are pointers to functions, void and pointer to void datatypes as parameter to functions, etc. Classes can use templates, etc. to deat with the unknown and unknoweable. BTW, REXX and prolog (among many languages) can "interpret" instructions that are created during runtime. It is certainly a great strength in any language. === * KWQ/2 1.2e NR * This tagline stolen by KWQ Mail/2. --- GEcho 1.00* Origin: The Beemer Board Escalon_CA 1-209-983-0625 USR HST/28.8! (1:208/1) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1 @PATH: 208/1 203/530 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808 809 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.