Hi,
I've hit a stumbling block using Clojure's gen-class facility for
constructors.
Is there anyway to access "this" inside Clojure's constructor/init
function?

ie. The following type of code is quite common in Java. How would you
do the same in Clojure?

public class MyDerivedClass extends SuperClass{  //<-- Derived Class
  public MyDerivedClass (){
    super("derived class");   //<-- Call superclass constructor
    setDescription("this is a derived class");  //<-- Call inherited
method
  }
}

Thanks
  -Patrick
--~--~---------~--~----~------------~-------~--~----~
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
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