spheres icon indicating copy to clipboard operation
spheres copied to clipboard

fixed missing dependency for string-null? in sxml-parser

Open ovenpasta opened this issue 9 years ago • 3 comments

Problem:

> (load (spheres/markup sxml-parser))
> (xml-string->sxml "<html><head><title>CIAO</title></head><body background=\"white\"><p>MONDO</p></body></html>")
*** ERROR IN #<procedure #3> -- Unbound variable: spheres/core#base#string-null?

after fix:

> (load (spheres/markup sxml-parser))                                                                             
> (xml-string->sxml "<html><head><title>CIAO</title></head><body background=\"white\"><p>MONDO</p></body></html>")
(*TOP* (html (head (title "CIAO")) (body (@ (background "white")) (p "MONDO"))))

ovenpasta avatar Oct 22 '15 10:10 ovenpasta

Awesome!! By the way, I think you have to put the all the imports inside the same import clause:

(import (spheres/core base)
        (spheres/string string))

Even if it works, I don't really know if it is expected to.

alvatar avatar Oct 22 '15 14:10 alvatar

Sir, it's just the opposite, if I write (import (spheres/core base) (spheres/string string)) then it does not work

ovenpasta avatar Oct 22 '15 16:10 ovenpasta

That is wrong... something fishy is going on. I'll take a look.

alvatar avatar Oct 22 '15 16:10 alvatar