Hi,
I am facing another problem now. Please take a look at this code -
(import '(System.IO Path Directory File StreamWriter
DirectoryNotFoundException))
(import '(System.Diagnostics Process ProcessStartInfo
ProcessWindowStyle))
(defn strt [tool]
(let [info (ProcessStartInfo. tool) p (Pr
mmwaikar wrote:
> Thanks Michael, and you are spot on about your observation on
> parentheses :) but when I wasn't putting (def name-wo-extn
> "something") in another (), I was getting some error like - too many
> arguments to def, hence I put one more. I am still getting used to
> this syntax.
Us
> Java, .NET, XML Services
> Consulting, Teaching, Speaking,
> Writinghttp://www.thoughtworks.com|http://www.tedneward.com
>
> > -Original Message-
> > From: clojure@googlegroups.com [mailto:cloj...@googlegroups.com] On
> > Behalf Of mmwaikar
> > Sent: Wedn
iting
http://www.thoughtworks.com | http://www.tedneward.com
> -Original Message-
> From: clojure@googlegroups.com [mailto:cloj...@googlegroups.com] On
> Behalf Of mmwaikar
> Sent: Wednesday, July 01, 2009 6:01 PM
> To: Clojure
> Subject: Re: Problem with clojure code on .net.
>
Thanks Michael, and you are spot on about your observation on
parentheses :) but when I wasn't putting (def name-wo-extn
"something") in another (), I was getting some error like - too many
arguments to def, hence I put one more. I am still getting used to
this syntax.
On Jul 1, 3:03 am, Michael
Thanks a lot Daniel for your suggestions. As per my understanding
Clojure for Java and .Net are two implementations of the same
language, but they have to support different things because the
underlying platforms support different things - e.g. extension methods
(are in C# but most likely not in J
Hi
2009/7/1 mmwaikar :
> Hi,
>
> I am learning clojure these days, but on .Net. I have the following
> code -
I only have a tiny bit to add to what Daniel's already said.
[...]
> (defn GetSubfolderName [filename]
> ((def name-wo-extn (Path/GetFileNameWithoutExtension filename))
First, d
Manoj,
In case this helps, I've had a bit longer to dwell on this problem and
I have a couple of ideas. I do think this raises the general question
of, are Clojure .NET and Clojure Java two different languages or two
implementations of the same language? Normally in a situation like
this
Manoj,
On Jun 30, 2009, at 8:55 PM, mmwaikar wrote:
> I am learning clojure these days, but on .Net. I have the following
> code -
>
> (import '(System.IO Path Directory File DirectoryNotFoundException))
>
> (defn starts-with-hmorx [name]
> (if (or (= (.ToUpper (.ToString name)) "H")
>