# question

Q&A's, tips, howto's

# question

Postby admin » Fri Jul 27, 2012 5:29 am

[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)
admin
Site Admin
 
Posts: 8
Joined: Wed Sep 25, 2002 5:55 pm

Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron