potential behavior of nested structs

Era Scarecrow rtcvb32 at yahoo.com
Mon Feb 4 14:17:02 PST 2013


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.


More information about the Digitalmars-d mailing list