multiple-value-bind
Posted: Thu Jun 29, 2017 5:53 am
Hello,
i'am trying to emulate "multiple-value-bind" via read time macro. That is translate:
The idea i had is expansion during read time :
But this fails because i cannot pass a function or variable to 'letex.
What do i miss here ? Or is there another way ?
Thx
Heiko
i'am trying to emulate "multiple-value-bind" via read time macro. That is translate:
Code: Select all
(mvb '(a b c .... ) '(1 2 3 ....) ...)))
into
(let (a 1 b 2 c 3 ....) ..... ))))
Code: Select all
(macro (mvb) nil)
(constant 'mvb (lambda-macro (ALIST BLIST)
(letex (flat (transpose (list ALIST BLIST))))))
What do i miss here ? Or is there another way ?
Thx
Heiko