If I had my way

Jacob Carlborg doob at me.com
Tue Dec 13 02:13:45 PST 2011


On 2011-12-13 10:54, Mehrdad wrote:
> On 12/12/2011 9:28 PM, Jonathan M Davis wrote:
>> On Monday, December 12, 2011 21:17:10 Mehrdad wrote:
>>
>>> Member functions always take precedence in C#, and it works perfectly
>>> well. There's really no problem in practice.
>> I'm not saying that it can't be done. I'm just saying that all of the
>> corner
>> cases and the like have to be sorted out such that the feature is
>> completely
>> defined, and we don't have ambiguities that are going to cause
>> problems. Things
>> are complicated enough with alias this and opDispatch and the like.
>> Adding yet
>> another way to add functions to a type complicates things that much
>> further.
>> So, UFCS needs to be carefully designed, and that's more of an issue
>> IMHO than
>> the exact syntax used to determine if a function is supposed to work with
>> UFCS.
>>
>> - Jonathan M Davis
> Just wondering, what _are_ the corner cases?

The floating point syntax with an optional zero cause a conflict.

1. and .1


-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list