I have been spending some time playing with Clojure-CLR. My REPL is working, I can call .NET classes from Clojure, but I have not been able to figure out calling compiled Clojure dlls from C# classes.
I have been trying to adapt the java example found here:
I removed the :name line from the top of the example because it causes a "Duplicate key: :name" error. Without the ":name" line, the code compiles fine and I can add the reference in Visual Studio, but I can't seem to figure out how to use the code. I've tried a variety of 'using' statements, but so far nothing has worked. Can anyone provide a little insight on this? Here is the Clojure code I am attempting to use.
(ns code.clojure.example.hello
(:gen-class
:methods [#^{:static true} [output [int int] int]]))
(defn output [a b]
(+ a b))
(defn -output
[a b]
(output a b))