FieldNameTuple!T and std.traits.Fields!T not empty for interfaces

Steven Schveighoffer schveiguy at gmail.com
Thu Jun 6 20:52:42 UTC 2019


On 6/6/19 4:49 PM, Steven Schveighoffer wrote:
> Oh wait! It's not empty, it has an empty string as a single member! 
> That's definitely a bug.
> 

OK, not a bug, but not what I would have expected. From docs:

"If T isn't a struct, class, or union, an expression tuple with an empty 
string is returned."

I wonder why that behavior is there, certainly it's intentional.

-Steve


More information about the Digitalmars-d-learn mailing list