An implementation of the Clojure language that runs on the Common Language Runtime (CLR). This could include Microsoft's CLR or Mono.
Questions tagged [clojureclr]
36 questions
1
vote
1 answer
How to use .NET WebClient calls in Clojure-CLR 1.4.1
In the question: Idiomatic way to write .NET interop function I found the following code segment:
(import '(System.Net HttpWebRequest NetworkCredential)
'(System.IO StreamReader))
When I start a REPL and enter:
(import '(System.IO…

Michael Frederick
- 297
- 2
- 5
- 12
1
vote
1 answer
Clojure CLR with multiple namespaces
I wrote a small namespace to do some database operations and I would like to use it from within another namespace. Normally having the files in the same directory and then doing
(ns program (:require [other-ns :as other]) (:gen-class))
would be all…

Matthew
- 11,203
- 9
- 38
- 44
0
votes
1 answer
How To Invoke GetCurrentDirectory Method in Clojure CLR?
I am just trying out Clojure CLR a bit and I am stumped about how to make what seems as if it should be a pretty simple call work.
Version is Clojure 1.10.0-master-SNAPSHOT
In the REPL I do this:
(import…

Onorio Catenacci
- 14,928
- 14
- 81
- 132
0
votes
1 answer
Indexer Syntax clojure clr
how can i access indexers of a class using clojure clr ? https://learn.microsoft.com/en-us/dotnet/csharp/indexers
I tried things like (key object) but without any success.

LeGLL
- 111
- 1
- 8
0
votes
1 answer
How to automate InternetExplorer with clojure-clr?
I'd like to use IE to open a web-page and retrieve its content from clojure-clr. I tried to translate the following C#-snippet to clojure, but could not load the DLL necessary to use SHDocVw (I don't have my clojure-code at hand right now):
using…

steglig
- 1,098
- 1
- 9
- 15
0
votes
1 answer
Why clojure-clr can use Console/WriteLine but can't use Task/Delay
I want to try clojure-clr
This program works fine:
(import [System])
(defn -main [& args]
(Console/WriteLine "Hello, World!"))
but when I want to use Task class:
(import [System.Threading.Tasks])
(import [System])
(defn -main [& args]
…

wang kai
- 1,673
- 3
- 12
- 21