DMD test suite not runnable on Debian/Linux

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 9 18:46:49 PDT 2017


On Sat, Jun 10, 2017 at 12:33:39AM +0000, Seb via Digitalmars-d wrote:
> On Saturday, 10 June 2017 at 00:16:13 UTC, H. S. Teoh wrote:
> > On Sat, Jun 10, 2017 at 02:27:13AM +0300, ketmar via Digitalmars-d
> > wrote:
> > > H. S. Teoh wrote:
> > > 
> > > > [...]
> > > 
> > > we can use UDAs to do that! just make the generator import the
> > > relevand dmd parts, and then use compile-time introspection to build
> > > tables, so generator can just write 'em to file in runtime. ;-)
> > 
> > Sure!  But ... uhm... what has UDAs gotta do with that? A straight
> > `foreach (memb; __traits(allMembers, T))` should do the trick.
> > 
> > 
> > T
> 
> Are you aware of this excellent PR?
> 
> https://github.com/dlang/dmd/pull/5082

Whoa. This is exactly what I've been looking for!


T

-- 
The best way to destroy a cause is to defend it poorly.


More information about the Digitalmars-d mailing list