where to find Implements!

Philippe Sigaud philippe.sigaud at gmail.com
Wed Sep 29 14:47:12 PDT 2010


On Wed, Sep 29, 2010 at 23:02, Simen kjaeraas <simen.kjaras at gmail.com> wrote:
> BLS <windevguy at hotmail.de> wrote:
>
>> Hope is was not a pipe dream...
>> I've no idea who has published it and where to find this snippet but in
>> case that I am not completely wrong there should exist something like
>> Implements!() for structures..
>
> I wrote such a template about a year ago, when Leandro Lucarella asked
> for it:
>
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=101673
>
> Not sure it still works, but at least the code is there, and shouldn't
> be very hard to update.

I see no reason why it shouldn't work, but I couldn't get it to
compile. Some problem in allMembersToTypeTuple.

Related to this, didn't dsimcha add something in Phobos recently, with
InputRangeObject or so?
Ah, here it is:

http://digitalmars.com/d/2.0/phobos/std_range.html#OutputRange


Philippe


More information about the Digitalmars-d mailing list