Annoyances with traits

Johannes Pfau nospam at example.com
Wed Mar 28 02:23:05 PDT 2012


Am Wed, 28 Mar 2012 06:29:30 +0200
schrieb "F i L" <witte2008 at gmail.com>:

> I find myself using __traits(hasMember, T, "member") a lot.
> It's really basic feature of meta-programming.
> 

We already had this discussion 3 years ago, there's even a bug report:

http://d.puremagic.com/issues/show_bug.cgi?id=3702
http://www.digitalmars.com/d/archives/digitalmars/D/Proposal_Replace_traits_and_is_typeof_XXX_with_a_magic_namespace_._99914.html

And related:
http://forum.dlang.org/thread/in00fa$4fa$1@digitalmars.com?page=1

I think someone just has to implement that 'meta' namespace and start a
pull request, I doubt there will be a big resistance against it.


More information about the Digitalmars-d mailing list