Dynamically Sized Structs

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 17 12:44:00 PDT 2014


On Thu, 17 Apr 2014 14:40:25 -0400, Kagamin <spam at here.lot> wrote:

> So you assert that variable length structs can't be allocated on heap  
> and sokoban example is a wrong example of variable length struct usage?
>
> And how heap indirection is different from stack indirection? It's still  
> indirection.

I think the biggest issue I would have with your implementation would be  
if I wrapped it in another struct that I wanted to store on the heap.

-Steve


More information about the Digitalmars-d-learn mailing list