Page 1 of 1

# question

PostPosted: Fri Jul 27, 2012 5:29 am
by 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)