std.mixins

Jacob Carlborg doob at me.com
Wed Sep 1 14:21:29 PDT 2010


On 2010-09-01 14:52, Torarin wrote:
> TDPL says it should work for any type.
> http://d.puremagic.com/issues/show_bug.cgi?id=3382
>
> 2010/9/1 Nick Sabalausky<a at a.a>:
>> "dsimcha"<dsimcha at yahoo.com>  wrote in message
>> news:i5jtdn$1g4t$1 at digitalmars.com...
>>>
>>> Isn't this a core language feature that's in the spec but is only
>>> currently
>>> implemented for arrays?  I thought eventually uniform function call syntax
>>> was
>>> coming for classes and structs, too.
>>
>> I've been really wishing for a long time that would actually happen. It's
>> annoying enough not to be able to do it for most types, but then the fact
>> that it's special-cased at all is a bit of a bizarre inconsistency.

I'm not completely sure but I think someone said that the float literal 
syntax (.1 and 1.) is ambiguous with the uniform function call syntax.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list