Little demo of allowing basic types to implement interfaces.

Rory McGuire rjmcguire at gmail.com
Wed Sep 4 04:57:50 PDT 2013


Thanks! a module declaration gets around that one.
http://dpaste.dzfl.pl/cff0ca5a line 21


On Wed, Sep 4, 2013 at 1:18 PM, Jacob Carlborg <doob at me.com> wrote:

> On 2013-09-04 13:01, Rory McGuire wrote:
>
>> yip, :) can't think of a reason except it was interesting. wish dmd
>> didn't segfault when I used __MODULE__.
>>
>> on the plus side the requirement for a non basic type is the same
>> requirement that #golang has on its interfaces.
>>
>
> Do you have a module declaration?
>
> --
> /Jacob Carlborg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20130904/39ce05a2/attachment.html>


More information about the Digitalmars-d-announce mailing list