Re: built-ins and include files
- Posted by Irv Mullins <irv at ELLIJAY.COM> Feb 03, 2000
- 405 views
On Thu, 03 Feb 2000, you wrote: > On Thu, 3 Feb 2000 14:40:19 -0500, Irv Mullins <irv at ELLIJAY.COM> wrote: > > >Because these are platform dependent. The code varies between DOS, Linux, > and > >whatever comes next. > >Makes sense to keep all such things separate. DOS graphics aren't much use > on > >Windows, for example, so why include them in the base run-time package? > > > Irv > > That only takes 1 constant > > CONSTANT PLATFORM = whateverplatform > > to turn on or change internal functions for various platforms. If code for all the platforms is included in the interpreter - yes. Do you really want DOS / LiNUX / Windows graphics code in the Euphoria interpreter, along with DOS / LINUX / Windows interrupts for disk i/o, screen i/o, real-time clock, etc.etc... when you can never use more than one at a time? Irv