Re: deftype and macros

2010-01-14 Thread Konrad Hinsen
On 14.01.2010, at 08:35, Konrad Hinsen wrote: This one failed yesterday on my office computer, but now I tried it again at home and it works fine: .. I'll check again on my office machine later today. It failed indeed, but after recompilation of Clojure and Contrib it works fine now. Sorr

Re: deftype and macros

2010-01-13 Thread Konrad Hinsen
On 13 Jan 2010, at 21:00, Rich Hickey wrote: a bit of a pain. But even inside method definitions macros do not seem to be expanded. Any use of a macro inside a method leads to a compile- time error message. Is this intentional or just a temporary state? Do you have a small example? This o

Re: deftype and macros

2010-01-13 Thread Rich Hickey
On Wed, Jan 13, 2010 at 1:11 PM, Konrad Hinsen wrote: > I have been trying to use macros to build a family of related deftypes, but > with no success. None of the parameters of deftype is evaluated, and > therefore nothing is macroexpanded either. So far, no surprise, though it's > a bit of a pain

deftype and macros

2010-01-13 Thread Konrad Hinsen
I have been trying to use macros to build a family of related deftypes, but with no success. None of the parameters of deftype is evaluated, and therefore nothing is macroexpanded either. So far, no surprise, though it's a bit of a pain. But even inside method definitions macros do not seem