Re: clojure struct with java

2011-10-16 Thread Diego Pacheco
I found the Solution. :-) I hope it help other people with the same issues, this worked out for me. I read clojure code on github and java code as well after some time struggling with the objects and functions I found this solution: package com.github.diegopacheco.sandbox.java.clojure; imp

Re: clojure struct with java

2011-10-16 Thread Diego Pacheco
You Right! BUT still does not work. I tried: Var type = RT.var("clojure.core","type"); Object oType = type.invoke("employee"); Var struct = RT.var("clojure.core", "struct-map"); Object oStruct = stru

Re: clojure struct with java

2011-10-13 Thread Alexander Taggart
I suspect this... Var struct = RT.var("clojure.core", "struct","employee :diego 10 :coach 1000"); isn't doing what you think it will. That will set the root binding of clojure.core/struct to the string you gave it. you probably want to get the var for the struct function, and then invoke it

clojure struct with java

2011-10-13 Thread Diego Pacheco
Hi guys, I’m trying to call Clojure from Java(I already managed to do it compiling Clojure using :gen-class  ). I want call Clojure using Java without compiling Clojure… I’m having issues with my structs they are not behaving in the way that I want, I tested the Clojure code on REPL and it seems