digego / extempore

A cyber-physical programming environment
1.4k stars 127 forks source link

basic letz list not working #150

Open benswift opened 9 years ago

benswift commented 9 years ago
(bind-func test_zone_list
  (lambda ()
    (letz ((lst (list 1 2 3)))
      (println lst))))

Compiler fails with message Type Error unsupported conversion from -1 to 108 It works fine if the letz is replaced by a let. Have I got the letz syntax wrong?

digego commented 9 years ago

at the moment letz can't return void. anything else is fine, just not void :)

try (letz (( ... (println lst) 1)

On Thu, Oct 23, 2014 at 3:25 PM, Ben Swift notifications@github.com wrote:

(bind-func test_zone_list (lambda () (letz ((lst (list 1 2 3))) (println lst))))

Compiler fails with message Type Error unsupported conversion from -1 to 108 It works fine if the letz is replaced by a let. Have I got the letz syntax wrong?

— Reply to this email directly or view it on GitHub https://github.com/digego/extempore/issues/150.

digego commented 9 years ago

leave as a bug though, needs to work for void case also.

On Fri, Oct 24, 2014 at 12:18 PM, Andrew Sorensen digegoo@gmail.com wrote:

at the moment letz can't return void. anything else is fine, just not void :)

try (letz (( ... (println lst) 1)

On Thu, Oct 23, 2014 at 3:25 PM, Ben Swift notifications@github.com wrote:

(bind-func test_zone_list (lambda () (letz ((lst (list 1 2 3))) (println lst))))

Compiler fails with message Type Error unsupported conversion from -1 to 108 It works fine if the letz is replaced by a let. Have I got the letz syntax wrong?

— Reply to this email directly or view it on GitHub https://github.com/digego/extempore/issues/150.