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
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
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
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
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
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