Melchior FRANZ wrote:
> Doesn't compile. Fix:

Does compile.  You didn't "make install" your SimGear and are trying
to compile against the source tree instead.  :)

But the variant directory structure (nasal.h installs to a different
location than it has in the source tree) is probably a bug.  The
proper fix requires modification to simgear/nasal/Makefile.am too, I
think.  I'm fuzzy on how this automake stuff works.

> What I like about PSL is that I don't have to learn yet another
> language. C knowledge is all I need. And what I don't like about
> Nasal is the name. Makes me too much think of noses.

Do you know any Javascript?  Nasal is very similar.  Take a look at
http://www.plausible.org/nasal/sample.nas for a quick tutorial.
Honestly, the syntax is very conventional; almost all the "C like"
code you can write looks basically the same as it does in C.

The only truly weird thing is that you don't "declare" functions.
Where most language do something like:

    void funcname() { ... } /* C */
    sub funcname { ... } # Perl
    def funcname(): #
        ...         # Python
    function funcname() { ... } // Javascript
    
Nasal uses:
    
    funcname = func { ... }

That is, the "func { ... }" expression defines an anonymous function
object, which gets assigned to a plain old variable named "funcname".

Andy



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to