Is Anything Holding you back?

Jonas Drewsen via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 5 14:06:28 PDT 2015


On Monday, 5 October 2015 at 13:38:43 UTC, Adam D. Ruppe wrote:
> On Monday, 5 October 2015 at 09:08:56 UTC, Jonas Drewsen wrote:
>> Say a want to have a central place to lookup all classes with 
>> the Foo() attribute on it.
>
> You can also use the RTInfo hook in druntime's object.d to 
> build that stuff in a central location.
>
> Of course, since that's a centralized file, it can at best be 
> changed on a per-project basis...

And it wouldn't work if you want to put your app on e.g. 
code.dlang.org for others to compile using their standard 
druntime. Furthermore RTInfo seems kind of reserved for GC atm.

> There's also only RTInfo for types, not functions and 
> variables, but still, it'd work for the case of building a list 
> of classes.

Types goes a long way for sure. Personally I need both types and 
functions.




More information about the Digitalmars-d mailing list