[Issue 8661] typeof not an attribute, doesn't work with UFCS

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 14 09:54:07 PDT 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2012-09-14 09:54:18 PDT ---
(In reply to comment #1)
> typeof isn't a function, nor is it a property. It's a built-in construct like
> is-expressions are. Would you want is-expressions to work with UFCS as well?
> 
> No, I think that this is trying to take UFCS too far.

See my Issue 4272

I think "a.typeof" is a nice syntax to have, similar to "a.sizeof". But this
isn't an example of UFCS.

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