PropertyType

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue May 17 10:36:31 PDT 2016


On 17.05.2016 16:24, Steven Schveighoffer wrote:
>
> But of course, if I want to know what type the expression x.foo will
> yield, I have to do the above.

typeof((()=>x.foo)())


(Arguably, function types should not even exist and typeof(x.foo) should 
give you what you want.)


More information about the Digitalmars-d mailing list