Hi Christophe,
> hth
Yeah, thanks! I'm not sure what I was thinking when I wrote out
`~sbody in the above code, thanks for pointing that out. I've got that
bit of what I'm trying to do working now, I ended up with code that
looks like this:
(defmacro sequential [layout & cs]
(let [g (gensym "sequential_group__")]
`(let [~g (. ~layout createSequentialGroup)]
~@(map #(list (first %) layout g (flatten (rest %))) cs)
~g)))
where flatten is a fn that flattens a nested structure. So I'm making
progress! I'll write up something a little longer and post about it
over the weekend, in case anybody else is interested.
Cheers,
Ian.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---