[Issue 9062] AddrExp should distinguish the existence of property resolution.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 25 01:51:18 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9062



--- Comment #11 from Kenji Hara <k.hara.pg at gmail.com> 2012-11-25 01:51:06 PST ---
(In reply to comment #10)
> I am not sure what you are trying to do here. Anyways, the following should
> work:
> 
> template PropertyTypeOf(alias prop) {
>     alias PropertyTypeOf = typeof(()auto ref=>prop);
> }

My try is an emulation of your idea. I found two problems at least.

1. In a way that uses template function attribute deduction, getting the
@trusted attribute is impossible, because it is deduced to @safe.

2. Cannot get function type from member property function, because of 'need
this' error.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list