Re: about macro exception : Unable to resolve classname: LinkedList, macro question and possible better approach

2015-03-08 Thread coco
All your macro needs to do is to convert the first form into the second. thanks james, that make sense for me... I don't know what the rest of your function is supposed to be doing you can check my second example (def data (atom )) (defmacro blahhh [] (go (let [ch

Re: about macro exception : Unable to resolve classname: LinkedList, macro question and possible better approach

2015-03-08 Thread coco
Sure, because you haven't quoted the symbol. If you write: (str *ns* : some-bus) ups!!, yes I forget quoted the symbol, thanks james!!... In Clojure, then Clojure will look for a variable called some-bus. The error you get is because it can't find such a variable. You want to

Re: about macro exception : Unable to resolve classname: LinkedList, macro question and possible better approach

2015-03-08 Thread James Reeves
On 8 March 2015 at 20:05, coco clasesparticulares...@gmail.com wrote: I don't know what the rest of your function is supposed to be doing you can check my second example I'm afraid that doesn't explain you intend your function to do. You appear to be setting up some form of message

Re: about macro exception : Unable to resolve classname: LinkedList, macro question and possible better approach

2015-03-06 Thread James Reeves
You're not using macros correctly. A macro does not evaluate its arguments, but it does evaluate its return value. The only thing a macro should do is to transform one piece of code into another. So let's look at what you want your syntax to look like: (send! (function-blah hi!)) Now

Re: about macro exception : Unable to resolve classname: LinkedList, macro question and possible better approach

2015-03-06 Thread coco
sorry for my crappy code, but I was changing some conditions and testing my parameters before and I end with this code (if (not (false? res)) res (recur)) I must write just (if res res (recur)) -- You received this message because you are subscribed to the Google

about macro exception : Unable to resolve classname: LinkedList, macro question and possible better approach

2015-03-06 Thread coco
Hi guys, first I'm really noob using macros, basically I've this (!b (function-blah hi)) Hey..I didn't know than intellij copy/paste the text with format!..cool! Ok..returning to my question...I don't need call to function-blah...I need send a message to one address possibly named