UFCS in C++

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 14 10:09:03 PDT 2014


On 10/14/14 11:34 AM, Jesse Phillips wrote:
> On Monday, 13 October 2014 at 18:50:52 UTC, Walter Bright wrote:
>> On 10/13/2014 1:53 AM, Peter Alexander wrote:
>>> Looks like Bjarne has proposed UFCS for C++
>>>
>>> http://isocpp.org/files/papers/N4174.pdf
>>>
>>> No mention of D though...
>>
>> https://www.reddit.com/r/programming/comments/2j3kr4/proposal_for_unified_call_syntax_for_c_xfy_vs_fxy/
>>
>>
>> and:
>>
>> https://www.reddit.com/r/programming/comments/2j3kr4/proposal_for_unified_call_syntax_for_c_xfy_vs_fxy/cl8fil5
>>
>>
>> Anyone remember just when it appeared in D? (It's not in D1.)
>
> Full support was added in 2.059 Apr 12, 2012
>
> http://dlang.org/changelog.html
> Bugzilla 3382: [tdpl] Implement uniform function call syntax

Yep, I messed up.

The "Allow 1.property syntax" was just a precursor to UFCS that 
disallowed 1.f syntax.

-Steve


More information about the Digitalmars-d mailing list