Re: Problem with clojure code on .net.

2009-07-10 Thread mmwaikar
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

Re: Problem with clojure code on .net.

2009-07-02 Thread Baishampayan Ghose
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

Re: Problem with clojure code on .net.

2009-07-02 Thread David Miller
> 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

RE: Problem with clojure code on .net.

2009-07-01 Thread Ted Neward
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. >

Re: Problem with clojure code on .net.

2009-07-01 Thread mmwaikar
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

Re: Problem with clojure code on .net.

2009-07-01 Thread mmwaikar
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

Re: Problem with clojure code on .net.

2009-07-01 Thread Michael Wood
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

Re: Problem with clojure code on .net.

2009-06-30 Thread Daniel Lyons
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

Re: Problem with clojure code on .net.

2009-06-30 Thread Daniel Lyons
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") >