Re: Compiler ?? (dynamic inclusion)
- Posted by mic _ <stabmaster_ at HOTMAIL.COM> Jun 06, 2000
- 456 views
Hrm.. well, let me explain just why I'd like conditional compilation (and conditional interpretation). Suppose you've written a library (or a program) that you want to be compilable on any platform. The problem is that this library uses OS-specific stuff. What to do? Write one version for each OS? Nah, do it like this instead: -- Suppose this is the Windows version define WIN32 ifdef DOS32 -- DOS specific stuff goes here endif ifdef WIN32 -- Windows endif ifdef LINUX -- ..and finally Linux endif When you compile the program, only the Windows code will be touched. The same thing would go for the interpreted version; only the Windows code would be interpreted, while the DOS/Linux code would be discarded. As for not wanting to use a compiler: That's optional. All I'm saying is that Euphoria would benefit from conditional compilation. C has it, Asm has it. Why? Because it's a good feature. As for not wanting to share your code: I can see the point if your going to sell it, but otherwise it just seems like a strange thing to do. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com