On Wed, Dec 21, 2011 at 12:16 AM, Antonio Recio <[email protected]> wrote:
> Whith this code:
>   (defn myCallback
>       (def t (vtk.vtkTransform.))
>       (doto boxWidget
>         (.GetTransform t)
>         (-> (.GetProp3D) (.SetUserTransform t))
>         ))
>
> I get this error. Why?
> IllegalArgumentException Parameter declaration def should be a vector
> clojure.core/assert-valid-fdecl (core.clj:6519)

Try

(defn my-callback []
  ...)

The argument list isn't optional, even when it's empty.

Also, your use of def is not recommended. Try

(defn myCallback []
  (let [t (vtk.vtkTransform.)]
    (doto boxWidget
      (.GetTransform t)
      (-> (.GetProp3D) (.SetUserTransform t)))))

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to