On 2012-04-16 09:09, Walter Bright wrote:
On 4/15/2012 11:30 PM, Jacob Carlborg wrote:
Cool, but why was "getMembers" removed?
1. It was intended to be used for precise gc.
I thought it was a first step for runtime reflection.
2. It was never implemented (always returned null).
I've noticed that.
3. Nobody used it or asked for it.
I've heard many people ask for a way to get the members of a class using
runtime reflection and I always pointed to getMembers. I always thought
it was supposed to be getMembers but that it wasn't finished yet.
There's a bug report about it:
http://d.puremagic.com/issues/show_bug.cgi?id=2844
4. GCInfo seems to be a better design.
I see. Makes sense, I just thought it was for a different use.
--
/Jacob Carlborg