1. *.il files - Cross platform?

or will the Shebang line in Linux/FreeBSD cause problems
with backend backend.exe (DOS), backendw.exe (Windows)?


Ken Rhodes
100% Microsoft Free!

new topic     » topic index » view message » categorize

2. Re: *.il files - Cross platform?

Kenneth Rhodes wrote:
> or will the Shebang line in Linux/FreeBSD cause problems
> with backend backend.exe (DOS), backendw.exe (Windows)?

On any platform, Euphoria pays no attention to any shebang (#!) line.
It's just a comment. Linux and FreeBSD shells look for the line and
use it to decide which interpreter to run the file with.
Also, I've observed that Apache Web server, installed on Windows,
also looks for and uses the shebang line, if one exists.

.il files can be copied to other platforms and they should
run as expected, although now that you mention it,
there's a small problem with platform(), since it's evaluated 
at parse (shroud) time, and won't be correct if you run a .il
file on a different platform from the one it was created on 
(Linux and FreeBSD have the same value
for platform(), so they are ok with each other.)

I'll change platform() so it's evaluated at run-time for .il files.

Thanks,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: *.il files - Cross platform?

Robert Craig wrote:

> I'll change platform() so it's evaluated at run-time for .il files.


WONDERFUL!   :) :) :)


Ken Rhodes
100% Microsoft Free!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu