Segfault with std.container.Array but not regular dynamic array

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Mon Nov 26 11:14:03 PST 2012


On 11/26/2012 04:07 PM, Joseph Rushton Wakeling wrote:
> I'm a bit confused as to why.  By the look of things it's actually the creation
> of new entries in the Node[uint] associative array, rather than appending links
> to the individual nodes.  Can anyone advise?

I have noticed that changing Node1 and Node2 from structs to classes means the 
code no longer segfaults, so presumably it's something related to reference 
versus value types ... ?



More information about the Digitalmars-d-learn mailing list