Little demo of allowing basic types to implement interfaces.
Rory McGuire
rjmcguire at gmail.com
Wed Sep 4 02:23:29 PDT 2013
thanks, yes, I just found that in TDPL. knew it was templates but forgot
about template mixins.
Do you know how to get a default parameter like __MODULE__ or __LINE__ to
be used from the calling site?
I've tried but I think my DMD is broken because it doesn't even work when I
subclass Exception().
On Wed, Sep 4, 2013 at 11:02 AM, Dicebot <public at dicebot.lv> wrote:
> On Wednesday, 4 September 2013 at 08:56:10 UTC, Rory McGuire wrote:
>
>> A template should get evaluated in the calling context.
>>
>
> No, in D templates use declaration scope (unless they are template mixins).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20130904/983b40c7/attachment.html>
More information about the Digitalmars-d-announce
mailing list