Rant after trying Rust a bit
Timon Gehr via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jul 26 08:29:49 PDT 2015
On 07/25/2015 02:15 PM, Andrei Alexandrescu wrote:
> On 7/23/15 4:52 PM, Walter Bright wrote:
>> On 7/23/2015 1:08 PM, Dicebot wrote:
>> > I am not sure how it applies.
>>
>> D interfaces (defined with the 'interface' keyword) are simple dispatch
>> types, they don't require an Object. Such interfaces can also have
>> default implementations.
>
> Is this new? I agree we should allow it, but I don't think it was added
> to the language yet.
>
> Andrei
In any case, the painful thing about the RangeObject interfaces is that
they transform value types into reference types.
More information about the Digitalmars-d
mailing list