I think I'm seeing some strange effects of some special handling
of :type in meta-data.

I'm trying to create a structure map with meta data that is also a
structure map.  The meta-data includes the :type key, but I see an
error when I try to do this:

( def sm ( create-struct :type ) )
( def so ( create-struct :x ) )
( def m ( struct sm :test ) )
( def o ( struct so 1 ) )
( def om ( with-meta o m ) )

any attempt to view the content of om results in java.lang.Exception:
Can't remove struct key

I can get round this by not using a structure map for the metadata,
but since I'm going to be creating container loads of these structures
I understand that I need to be using struct-maps for efficiency.

Is there a reason why this should not work?

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