potential behavior of nested structs

Zach the Mystic reachBUTMINUSTHISzach at gOOGLYmail.com
Mon Feb 4 14:42:51 PST 2013


On Monday, 4 February 2013 at 22:17:04 UTC, Era Scarecrow wrote:
> On Monday, 4 February 2013 at 14:37:29 UTC, Dicebot wrote:
>> Nested types with hidden context pointers is one of D features 
>> I do not like at all.
>> Please leave me at least my structs. :(
>
>  They already exist for classes though; Or so I understand.
>
>  They would be rare; But I've had the need for them with 
> non-classes (say a sorting algorithm that's also a range) it's 
> an annoyance to manually do it using pointers and then having 
> to update said pointers. It can be done... It's just ugly and 
> doesn't feel like I should have to.

Hey I've been working on this. Thanks for holding the fort down.


More information about the Digitalmars-d mailing list