Reflection would be really nice

Walter Bright newshound1 at digitalmars.com
Thu Apr 19 19:42:46 PDT 2007


Frank Benoit (keinfarbton) wrote:
> Walter Bright schrieb:
>> Frank Benoit (keinfarbton) wrote:
>>>> allClasses is already there, see Classinfo.find().
>>> Didn't know about it :)
>>>
>>> Now i can test if "org.eclipse.swt.SWT.SWT" exists.
>>> If so, is there a way to call the static method "static_this()"?
>> In the module info, there should be an array of the static constructors.
> 
> I cannot use them, because of circular dependencies. This is, why i
> "manually" call "static_this()" methods (note the underscore) in a
> defined order.

There isn't a way to do that with reflection at the moment.



More information about the Digitalmars-d mailing list