Howdy, been enjoying learning Clojure and watching some screencasts but had to simple (I think) questions about the ant code that I haven't been able to find info about on the site or in this group (though I admit my lack of knowledge about what to call these two questions could lead me to not find them in the google group).
First is the use of keywords as the predicate in some forms. For example in the turn function: (:ant @p) Does :ant become a function of the map because it's a map? Can you always do this? Isn't this the same as (@p :ant)? Is there an equivalent for vectors? The second question deals with the agent calls. To start the agents off you just have to pass the function: (send-off animator animation) Yet in the animation function you use: (send-off *agent* #'animation) Is this because animation isn't bound in the current thread and you need to get the route bound value (if that's the correct term) for the animation var? If so I guess this confuses me a little in the sense that you have to know you're in a thread where animation is not bound. If you need to use #' for this reason, why can't the system be smart enough to say "hey this isn't bound in my thread, does it have a root binding?" or something of that nature? Anyway thanks and sorry if the answers are in the group somewhere, once I get answers I'd probably be able to find them :) Thanks! Chris G --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---