Re: ClojureScript: Error when calling require in repljs REPL.

2011-12-18 Thread Fiel Cabral
I found the answer in the clojurescript wiki under "The REPL and Evaluation Environments". https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments (require x) is not supported but (ns ...) supports :require. On Dec 18, 4:23 pm, Fiel Cabral wrote: >

ClojureScript: Error when calling require in repljs REPL.

2011-12-18 Thread Fiel Cabral
I'm trying to learn ClojureScript and I get this error when calling require in the repljs REPL: (I ran these commands after cloning the git repo last night and running script/bootstrap) ./script/repljs "Type: " :cljs/quit " to quit" ClojureScript:cljs.user> (+ 1 1) 2 ClojureScript:cljs.user> (zer

ClojureCLR PInvoke and DLLImport attribute

2011-12-01 Thread Fiel Cabral
Does ClojureCLR support PInvoke and the DLLImport attribute or something similar? (e.g., from PInvoke.net) DllImport("crypt32.dll", EntryPoint = "CertGetNameString", CharSet = CharSet.Auto, SetLastError = true)] static extern System.UInt32 CertGetNameString(IntPtr CertContext, System.UInt32 lType,

Can't "recur" from within a "catch" expression.

2011-03-18 Thread Fiel Cabral
Hello Clojure users, This is a dumb question but I'd like to write something equivalent to this in Clojure: public String loop_with_exception(int retries) { for (int n = retries; n > 0; n--) { try { return some_io_operation(); } catch (IOException e) { continue; } } r