Your macro is incorrect. Notice what happens to un-namespaced symbols inside a syntax quote:
(ns 'user) (macroexpand `(foo)) =>(user/foo) So your use of >! is getting translated into mynamespace/>!. Core.async sees your macro and expands it, it just doesn't condsider mynamespace/>! to be a put! call. Instead it sees it as any other function. To get this to work the way you want, you need to do one of the following `(~'>! c 42) or `(clojure.core.async/>! c 42) Or, if you've done the following (ns user (require [clojure.core.async :as async)) Then you can do this: `(async/>! c 42) Timothy Baldridge On Mon, Aug 5, 2013 at 5:52 AM, Tassilo Horn <t...@gnu.org> wrote: > Alice <dofflt...@gmail.com> writes: > > > I didn't know that macros can do that! > > Then you might want to have a look at `macroexpand-1` and `macroexpand` > from clojure.core and `mexpand-1`, `mexpand`, and `mexpand-all` from > clojure.tools.macro. > > Bye, > Tassilo > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth) -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.