[Issue 8381] Uniform function call syntax (pseudo member) enhancement suggestions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 12 10:23:57 PDT 2012


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


deadalnix <deadalnix at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deadalnix at gmail.com


--- Comment #4 from deadalnix <deadalnix at gmail.com> 2012-07-12 10:23:56 PDT ---
(In reply to comment #3)
> (In reply to comment #1)
> > - The rule is non-obvious. How could a new developer possibly guess that this
> > happens?
> 
> You could also argue that it's not obvious that:
> var.func(arg);
> 
> ...can "transform" itself into:
> func(var, arg);
> 
> I don't think it's that much different to transform:
> MyType.func(arg);
> 
> ...into:
> func!(MyType)(arg);
> 

This is the most obvious way to transform that.

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