<< Back to previous view

[CLJCLR-27] Add more support for attributes in gen-class Created: 07/Dec/13  Updated: 16/Aug/14  Resolved: 22/Jun/14

Status: Resolved
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: David Miller Assignee: David Miller
Resolution: Completed Votes: 1
Labels: None


 Description   

For example, to support COM interop, it would be nice to annotate the gen-class'd class with

[ComImport, Guid("E436EBB3-524F-11CE-9F53-0020AF0BA770")]

We already have attribute support for definterface, deftype, gen-interface, so this should be easy to do.



 Comments   
Comment by Antti Karanta [ 23/Jun/14 2:05 AM ]

Great! Is there any how-to documentation for this feature as of yet?

Comment by David Miller [ 16/Aug/14 3:15 PM ]

There is some code. Look at

https://github.com/clojure/clojure-clr/blob/master/Clojure/Clojure.Tests/clojure/test_clojure/attributes.clj

Also look at

https://github.com/clojure/clojure-clr/tree/master/Clojure/Clojure.Source/clojure/samples/attributes

Comment by David Miller [ 16/Aug/14 3:16 PM ]

And I added support for attaching attributes to gen-class'd classes in this commit:

https://github.com/clojure/clojure-clr/commit/f707faf7e1b3eeb5047eb8eee2f50bb517bed3a2

Generated at Wed Oct 22 23:10:23 CDT 2014 using JIRA 4.4#649-r158309.