I didn't have Java vtk available so I just based it on

EnumTest.java:

public class EnumTest
{
  public enum Attr { Foo, Bar, Baz }
}

> javac EnumTest.java

Clojure:

=> (import 'EnumTest)
EnumTest
=> EnumTest$Attr/Foo
#<Attr Foo>

After having compiled VTK and extracted the content in vtk.jar, I see
no reference to SCALARS anywhere, including
vtkDataSetAttributes.java/class.

Lars Nilsson

On Mon, Jun 25, 2012 at 12:22 PM, Antonio Recio <amdx6...@gmail.com> wrote:
> @Lars Nilsson: I doesn't work.
>
> user=> (println vtkDataSetAttributes$AttributeTypes/SCALARS)
> #<CompilerException java.lang.RuntimeException: No such namespace:
> vtkDataSetAttributes$AttributeTypes, compiling:(REPL:4)>
>
> user=> (println vtk.vtkDataSetAttributes$AttributeTypes/SCALARS)
> #<CompilerException java.lang.ClassNotFoundException:
> vtk.vtkDataSetAttributes$AttributeTypes, compiling:(REPL:4)>
>
> user=> (println vtk.vtkDataSetAttributes/SCALARS)
> #<CompilerException java.lang.RuntimeException: Unable to find static field:
> SCALARS in class vtk.vtkDataSetAttributes, compiling:(REPL:4)>
>
>
>> Not sure if you can get the equivalent of 0 as output, but perhaps
>> referring to vtkDataSetAttributes$AttributeTypes/SCALARS will work?
>>
>> Lars Nilsson
>
> --
> 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
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to