It's a class! It's a struct! It's ... SuperStruct!

Meta via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Oct 18 14:36:22 PDT 2015


On Sunday, 18 October 2015 at 21:18:52 UTC, rcorre wrote:
> That's just the kind of thing I was looking for! I actually 
> started with a 'visitor' function that works similar to project:
>
> https://github.com/rcorre/superstruct/blob/master/src/superstruct.d#L153-L166
>
> then decided to wrap the whole thing in a struct to expose the 
> members more 'naturally'.
>
> I think having something like project in phobos would be pretty 
> useful though.

Yeah, I'm planning on making a PR once I add in support for 
functions et al.


More information about the Digitalmars-d-announce mailing list