kleopatra999 / owl-lisp

Automatically exported from code.google.com/p/owl-lisp
2 stars 1 forks source link

literal vector quasiquote problem #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How to trigger the problem?
`#(10 5 ,(sqrt 4) ,@(map sqrt '(16 9)) 8) 

What is the expected output?
#(10 5 2 4 3 8)

What do you see instead?
(Vector 10 5 (unquote (sqrt 4)) (unquote-splicing (map sqrt (quote (16 9)))) 8)

Please provide any additional information below.
literal vectors were just added, but forgot to add quasiquotation handling for 
them.

Original issue reported on code.google.com by aohelin on 19 Dec 2011 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by aohelin on 19 Dec 2011 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by aohelin on 19 Dec 2011 at 2:55

GoogleCodeExporter commented 9 years ago
$ ol
You see a prompt
> `#(10 5 ,(sqrt 4) ,@(map sqrt '(16 9)) 8) 
#(10 5 2 4 3 8)

Related changes coming a bit later, but closing this since this part already 
works.

Original comment by aohelin on 24 Jan 2012 at 9:07