Hi,

Am 28.04.2009 um 09:26 schrieb ianp:

   (defmacro create-form [#^Container container #^Map components &
body]
     (let [layout (GroupLayout. container)]
      (.setLayout container layout)
      ...))

Please note, that these annotations are wrong. Since
create-form is a macro, container and components refer
to Symbols or some other Clojure structure (depending
on how you pass the later container and map).

So, when you invoke your macro like this:
  (create-form c m stuff ...)
container is the Symbol c and components the Symbol m.

In particular the (GroupLayout. container) and the
(.setLayout container layout) make only sense at runtime
So there use here is probably a mistake.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to