I want to dynamically read out a Data Type. For example:
data X = X(str name, int val);
X x = X("x", 1);
for(_x <- x) println(_x);
This works, but is it also possible to get the member names of this datastructure (i.e. "name" and "val" for X)?
When you reify the type of X, using #X you get a full representation including all details you need. This is undocumented because we plan to change this representation soon.
Asked: Dec 23 '11
Seen: 16 times
Last updated: Dec 26 '11
Copyright CWI, 2010-2012. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.