Code: Select all
#!/usr/bin/newlisp
(context 'DEMO)
(define (DEMO:DEMO)
(xml-type-tags nil 'cdata '!-- nil)
(set 'url (xml-parse (get-url "http://newlisp.org/rss.cgi?News") (+ 1 2 8 16) ))
)
#-----------------------------------
(context 'MAIN)
(DEMO)
(xml-type-tags nil 'cdata '!-- nil)
(set 'url (xml-parse (get-url "http://newlisp.org/rss.cgi?News") (+ 1 2 8 16) ))
(if (= url DEMO:url) (println "They are equal")(println "They are not"))
(exit)
If I try to read symbols of the 'url' variable in the MAIN context, everything is OK. But for some reason, the DEMO context does not see the elements in the 'url' variable as symbols.
What am I doing wrong here?
Peter