On Nov 14, 2007 4:30 PM,  <[EMAIL PROTECTED]> wrote:
>
> Right. Maybe I need to clarify here that Alice ML (and most other MLs,
> FWIW) never was intended to be used as a scripting language. I am not sure
> where you got that impression from. The model of operation is running
> applications in the form of compiled components, very much like with Java
> (notwithstanding the existence of an interactive toplevel for
> exploration).

Well, if a language has an interactive toplevel (or a very fast
compiler) I don't
see why not to use it a scripting language. Many Scheme implementations
allow it, I did expect the same to be true for ML.

> Well, in addition to what I said above, note that shebang is a
> Unix-specific thing (and one that conflicts with SML syntax, too). One
> main design goal of Alice, however, is to operate in a
> platform-independent manner. So it is unlikely that we will ever add
> support for that.

You don't need to change the syntax of SML. You just need to put a
front-end stripping the
first line if it begins with #! and dispatching the code to the
interactive interpreter. On Windows,
the front-end would just strip the shebang.

 Michele Simionato

_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users

Reply via email to