[Issue 4272] x.typeof syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 6 10:40:51 PDT 2012


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



--- Comment #6 from Nick Treleaven <ntrel-public at yahoo.co.uk> 2012-10-06 10:28:49 PDT ---
(In reply to comment #5)
> The problem is that UFCS was made to work with functions and typeof is not a
> function. Accepting identifier.typeof would result in questions about which
> identifiers are valid for this and what else works besides typeof with them.

This is not to do with UFCS. There are already many built in properties like
x.sizeof, x.init:
http://dlang.org/property.html

typeof fits nicely as a built in property, and helps cut down on nested
brackets.

-- 
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