Re: Euphoria Interpter ?
On Thu, 17 Nov 2005 11:22:52 -0800, "Bernie Ryan"
<guest at RapidEuphoria.com> said:
> I don't think it is as complicated as you think. This is
> what I mean.
>
> #define LINUX -- at the top of the program I place this or #define WIN32
> -- depending on what I define at top of program the parser only
> -- parses the code that meets the defined condition.
>
> #IF Linux
> include linux.eu
> for i = 1 to 200 do
> do somthing
> end for
> #ELSIF WIN32
> include win32.ew
> for i = 1 to 200 do
> do somthing
> end for
> #ELSE
> include dos.e
> for i = 1 to 200 do
> do somthing
> end for
> #ENDIF
> Bernie
my $0.02: that is just so LAME. why not
include
#if linux
linux
#elsif win32
win32
#else
dos
#endif
.
#if linux
eu
#elsif win32
ew
#else
e
#endif
for
#if linux
l
#elsif win32
w
#else
d
#endif
=
....
OR
==
write/use include files which run on multiple platforms
OR
==
write a stub for each platform:
main.eu:
include linux.eu
include main.e
main.ew:
include win32.ew
include main.e
main.ex
include dos.ex
include main.e
why, oh why, mangle a platform-independent language just because you
cannot write platform-independent includes?????!!???
Pete
--
petelomax at fastmail.fm
--
http://www.fastmail.fm - Does exactly what it says on the tin
|
Not Categorized, Please Help
|
|