The year is 2019

rikki cattermole rikki at cattermole.co.nz
Sat Jul 27 11:03:27 UTC 2019


On 27/07/2019 10:46 PM, aliak wrote:
> On Saturday, 27 July 2019 at 09:38:20 UTC, Mike Franklin wrote:
>> On Saturday, 27 July 2019 at 05:09:11 UTC, XavierAP wrote:
>>
>>> I was thinking of something simpler. And also new to the language, 
>>> not that could or should be implemented by lowering (specially not 
>>> lowering to alias this).
>>>
>>> Again leaving multiple aside:
>>>
>>>     interface IPrintable
>>>     {
>>>         string toString();
>>>     }
>>
>> I like the idea of using interfaces, but I'm not sure how to implement 
>> such a thing for structs.  Is it just a compile-time contract?  How 
>> does it work at runtime when we call a function like `void 
>> foo(IPrintable p);` with an instance of `XY` or `ParallelXY`?
> 
> 
> You reminded me of the existence of this:
> 
> https://github.com/rikkimax/DIPs/blob/master/DIPs/DIP1xxx-RC.md

My signature DIP (one of the many versions of it).

Current status: waiting on a dependency of named parameters before 
continuing.


More information about the Digitalmars-d mailing list