Importing a class with an ambiguous name

2010-02-11 Thread igorrumiha
Hi,

I'm exploring the jexcelapi library (http://
jexcelapi.sourceforge.net), and one of the classes there is
jxl.write.Number. So, when I do:

= (import 'jxl.write.Number)

I get:

Number already refers to: class java.lang.Number in namespace: user
  [Thrown class java.lang.IllegalStateException]

I tried excluding the Number symbol from the current namespace but
that doesn't work (or I'm doing it wrong). So, how do I import classes
with names that already exist in my namespace?

p.s.
As far as writing Excel spreadsheets is concerned, I'm aware of the
Apache POI project, this one is the next on my list...

Thanks,

Igor Rumiha

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


Re: Importing a class with an ambiguous name

2010-02-11 Thread Joop Kiefte
If I remember correctly it will work just fine if you don't import it and
you refer to it like (jxl.write.Number...

Please correct me if I'm wrong.

Joop Kiefte

2010/2/11 igorrumiha igorrum...@gmail.com

 Hi,

 I'm exploring the jexcelapi library (http://
 jexcelapi.sourceforge.net), and one of the classes there is
 jxl.write.Number. So, when I do:

 = (import 'jxl.write.Number)

 I get:

 Number already refers to: class java.lang.Number in namespace: user
  [Thrown class java.lang.IllegalStateException]

 I tried excluding the Number symbol from the current namespace but
 that doesn't work (or I'm doing it wrong). So, how do I import classes
 with names that already exist in my namespace?

 p.s.
 As far as writing Excel spreadsheets is concerned, I'm aware of the
 Apache POI project, this one is the next on my list...

 Thanks,

 Igor Rumiha

 --
 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.comclojure%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en




-- 
Communication is essential. So we need decent tools when communication is
lacking, when language capability is hard to acquire...

- http://esperanto.net  - http://esperanto-jongeren.nl

Linux-user #496644 (http://counter.li.org) - first touch of linux in 2004

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

Re: Importing a class with an ambiguous name

2010-02-11 Thread igorrumiha
On Feb 11, 1:24 pm, Joop Kiefte iko...@gmail.com wrote:
 If I remember correctly it will work just fine if you don't import it and
 you refer to it like (jxl.write.Number...

 Please correct me if I'm wrong.


You are correct! Thanks!

--
Igor Rumiha

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