Skip to content

Instantly share code, notes, and snippets.

@kpmaynard
Created May 6, 2014 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpmaynard/43500393959b3615a3fe to your computer and use it in GitHub Desktop.
Save kpmaynard/43500393959b3615a3fe to your computer and use it in GitHub Desktop.
(let [origin (java.awt.Point. 0 0)]
(set! (.x origin) 15) ;; Assert failed: set! target must be a field or symbl naming a var targetexpr...
(str origin))
(let [origin (java.awt.Point. 0 0)]
(set! (.-x origin) 15) ;; this works dnolen example in another problem resolution
(str origin))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment