Re: "Getting Started" is NOT starting for me...

2008-09-20 Thread cliffc
A little more info: failed on Windows XP, SP3. Worked great for me on Linux. Cliff On Sep 20, 5:54 am, Christopher Taylor <[EMAIL PROTECTED]> wrote: > btw, showMessageDialog being a static method, isn't the preferred syntax > > (javax.swing.JOptionPane/showMessageDialog nil "Hello World!") > >

Re: Cells in Clojure

2008-09-20 Thread Stuart Sierra
Exactly. Here's some demo code, attached, that uses a cell in a JPanel. This is a simple example, but maybe it shows how this could be useful when you have many objects with complex dependencies. -Stuart On Sep 20, 7:54 pm, kyle smith <[EMAIL PROTECTED]> wrote: > Maybe you could attach a cell to

Re: Suggest two argument "into-array" with explicit type

2008-09-20 Thread Stephen C. Gilardi
On Sep 20, 2008, at 1:37 PM, Stuart Sierra wrote: > That would be useful when you need to create an array of an abstract > type, like an interface. I posted a version here: > http://groups.google.com/group/clojure/msg/1c02773d070decd5 It's good to see another use case. Not surprisingly, the Clo

Re: Suggest two argument "into-array" with explicit type

2008-09-20 Thread Stephen C. Gilardi
On Sep 20, 2008, at 11:16 AM, Rich Hickey wrote:Hmm.. there is already make-array for the latter:(make-array String 0)find-doc is your friend :)Cool, thanks. I had looked up "array", but hadn't looked carefully at all that it returned.As far as into-array taking a type, I'm fine with that, but the

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-20 Thread Stephen C. Gilardi
On Sep 20, 2008, at 7:27 PM, Mike Hinchey wrote: > I added support for *1 *2 *3 in my fork of swank-clojure (for emacs/ > slime), http://github.com/mikehinchey/swank-clojure. I'm glad to see this support in swank-clojure. Thanks! > I did one thing different which is to not reset the vars if the

Re: Cells in Clojure

2008-09-20 Thread kyle smith
Maybe you could attach a cell to a JComponent and call setEnabled as necessary. --~--~-~--~~~---~--~~ 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 To unsubsc

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-20 Thread Mike Hinchey
I added support for *1 *2 *3 in my fork of swank-clojure (for emacs/ slime), http://github.com/mikehinchey/swank-clojure. I did one thing different which is to not reset the vars if the eval is one of the vars themselves. Rich noted most CL repls don't do this, but it seems useful to me. Though

Re: Suggest two argument "into-array" with explicit type

2008-09-20 Thread Stuart Sierra
On Sep 20, 11:16 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > As far as into-array taking a type, I'm fine with that, but the type > should come first. That would be useful when you need to create an array of an abstract type, like an interface. I posted a version here: http://groups.google.com/

Re: packaging App (cross-platform) without scripts, only jar

2008-09-20 Thread budu
Thanks a lot! It's funny that you wrote this post now because I was about to try to figure it out myself this week-end. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: Suggest two argument "into-array" with explicit type

2008-09-20 Thread Rich Hickey
On Sep 20, 11:04 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > I needed an empty array of Strings to pass to a Java function. The > first place I considered was "into-array", but without an array > element to work with, it returns an array of Object. > > I suggest that into-array be exte

Suggest two argument "into-array" with explicit type

2008-09-20 Thread Stephen C. Gilardi
I needed an empty array of Strings to pass to a Java function. The first place I considered was "into-array", but without an array element to work with, it returns an array of Object. I suggest that into-array be extended to allow a second argument that gives the type of the elements in the

packaging App (cross-platform) without scripts, only jar

2008-09-20 Thread Pascal
I needed a single jar file that if you double clicked on it (be in Mac OS X or Windows) it will just launch my Clojure App. No CLASSPATH or bash or anything, cross platform. I didn't found anything like these so I just made it (I know it's not difficult, let say this is for Newbie!) The archi i

default parameters question

2008-09-20 Thread AlamedaMike
Consider: user=> (defn foo [ {:keys [a b] :or {c 5}} ] (list a b)) #'user/foo Note that the key of the default entry for "c" is not in the formal parameter list. user=> (foo 7) (nil nil) user=> (foo {:a 3 :b 4}) (3 4) user=> (foo {:a 3 :c 4}) (3 nil) The second is of cours

Re: "Getting Started" is NOT starting for me...

2008-09-20 Thread Christopher Taylor
btw, showMessageDialog being a static method, isn't the preferred syntax (javax.swing.JOptionPane/showMessageDialog nil "Hello World!") both versions work here (standard OSX Java). $ java -version java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- b05-237