July 14, 2010
On Wed, Jul 14, 2010 at 03:17, dsource.org <noreply at dsource.org>  wrote:
>
>    phobos commit, revision 1756
>
>
>    user: andrei
>
>    msg:
>    Added hasMember
>
>    http://www.dsource.org/projects/phobos/changeset/1756


In the unit test, C1 and C2 should be classes, I think.


As an very minor aside, __traits(allMembers, T) also works if T is a module name, but I don't know if people want to test for the presence of a particular symbol in a module. I also wonder how one should test to know if something is a module name. Maybe with trying an import?

Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20100714/4b466cca/attachment.html>