# question

Started by admin, July 26, 2012, 10:29:04 PM

Previous topic - Next topic

admin

[We have a new web host! This post was brought over manually by the admin:]



Postby winger » Mon Jul 23, 2012 8:50 am

(background-color "#fffc17")

this is a html function .



now i want :

(background-color #:fffc17)

or

(background-color #fffc17)



but broken:

(sym "ffffaaaa" (sym "#"))



winger

     

    Posts: 14

    Joined: Wed Mar 14, 2012 7:31 am



-----



Postby Lutz » Tue Jul 24, 2012 3:31 pm

The # character is used as a comment character in newLISP. All characters on the same line following it, are taken as comment.



This allows writing mixed shell/newLISP scripts. E.g. all newLISP shell scripts in UNIX start with #!/usr/bin/newlisp or #!/usr/bin/env newlisp



Code: Select all

    #!/usr/bin/newlisp



    # this is an example UNIX script

    # containing newLISP code



    (println "Hello world")



    (exit)