Re: aliasing symbols from clojure core

2010-12-14 Thread Meikel Brandmeyer
Hi, Am 14.12.2010 um 19:04 schrieb Robert McIntyre: > Not to sound like a one track record here, but you should look at > clojure.contrib.generic.arithemetic to see how to redefine / Which does not make / a legal symbol. Slashes are not allowed in Symbols and the future of this code is not guar

Re: aliasing symbols from clojure core

2010-12-14 Thread Robert McIntyre
Not to sound like a one track record here, but you should look at clojure.contrib.generic.arithemetic to see how to redefine / have a great day, --Robert McIntyre On Tue, Dec 14, 2010 at 4:26 AM, Meikel Brandmeyer wrote: > Hi, > > Am 14.12.2010 um 04:25 schrieb Sunil S Nandihalli: > >> yeah coo

Re: aliasing symbols from clojure core

2010-12-14 Thread Meikel Brandmeyer
Hi, Am 14.12.2010 um 04:25 schrieb Sunil S Nandihalli: > yeah cool I can do that.. thx. But I remember seeing a syntax for it in the > ns macro... (ns name.space (:refer-clojure :rename {+ core+})) Please note that / is a special case symbol. Slashes are not allowed in symbols, and I'm not

Re: aliasing symbols from clojure core

2010-12-13 Thread Sunil S Nandihalli
yeah cool I can do that.. thx. But I remember seeing a syntax for it in the ns macro... Sunil. On Tue, Dec 14, 2010 at 8:54 AM, Robert McIntyre wrote: > you can always do > > (def c+ clojure.core/+) > > right after the namespace declaration. > > --Robert McIntyre > > On Mon, Dec 13, 2010 at 10:2

Re: aliasing symbols from clojure core

2010-12-13 Thread Robert McIntyre
you can always do (def c+ clojure.core/+) right after the namespace declaration. --Robert McIntyre On Mon, Dec 13, 2010 at 10:20 PM, Sunil S Nandihalli wrote: > Hello everybody, > I am defining a protocol which defines the functions +,-,*,/ .. so I am > excluding those symbols when I do :refer

aliasing symbols from clojure core

2010-12-13 Thread Sunil S Nandihalli
Hello everybody, I am defining a protocol which defines the functions +,-,*,/ .. so I am excluding those symbols when I do :refer-clojure but I would like to give an alias to say something like c+ c- c* and c/ how can I do this? Thanks, Sunil -- You received this message because you are subscrib