Re: Compiler ?? (dynamic inclusion)
- Posted by Irv Mullins <irv at ELLIJAY.COM> Jun 05, 2000
- 538 views
On Mon, 05 Jun 2000, you wrote: > >>Well, d'oh... > >>How about adding some "define", "ifdef" and "endif" expressions ? > >>It doesn't seem like such a difficult thing to add. > > > >And just how is that supposed to work on a program that was > >compiled two weeks ago, maybe by someone else? > >Irv > > Step 1: Make the source code of your program available for others. > Step 2: Let the whoever wants to recompile it on his/her platform. By definition, a dynamic include file is _generated on the fly_ , *after* the program is loaded, but before Euphoria has reached the line which includes that file. Since you can't load a program before it has been compiled, and defines are only instructions to the compiler, (pre-processor instructions, to be accurate), they are of no use here. Besides, the whole reason for a compiler is to produce executable files so your programs can be run by people who don't have a compiler or who don't want to be bothered with installing and learning to use a compiler. Or maybe I just don't want to share my source code. Irv