UFCS in C++

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 13 19:25:27 PDT 2014


On 10/13/2014 6:55 PM, Steven Schveighoffer wrote:
> On 10/13/14 2:50 PM, 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.)
>
> The concept is in D1 for arrays since as long as I've ever used D.
>
> I can't see the version exactly that added UFCS, but 2.058 (2011) says:
>
> * Allow 1.userproperty syntax
>
> Which I think is when it was really added.
>
> -Steve

Thanks!


More information about the Digitalmars-d mailing list