Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ns aliasmacro)
- ;; In REPL:
- ;; => (compile 'aliasmacro)
- ;; In a new REPL:
- ;; => (use 'aliasmacro)
- ;; => (mac-alias)
- ;; ArityException Wrong number of args (0) passed to:
- ;; aliasmacro$my-macro clojure.lang.AFn.throwArity (AFn.java:437)
- ;;
- ;; => (mac-alias 1)
- ;; ArityException Wrong number of args (1) passed to:
- ;; aliasmacro$my-macro clojure.lang.AFn.throwArity (AFn.java:437)
- ;;
- ;; => (mac-alias 1 1)
- ;; ()
- ;;
- ;; => (mac-alias 1 1 1)
- ;; ArityException Wrong number of args (3) passed to:
- ;; aliasmacro$my-macro clojure.lang.AFn.throwArity (AFn.java:437)
- (defmacro my-macro [] '())
- (def #^{:macro true} mac-alias #'my-macro)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement