OSNews article about C++09 degenerates into C++ vs. D discussion

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Fri Nov 24 01:19:33 PST 2006


Steve Horne wrote:
> BUT - how do cyclic references occur in relation to slicing? It sounds
> very odd. I can certainly see the point of chains (slices of slices)
> but I can't see how cycles could arise at all.

Take this type:

struct S {
	S[] slice;
	// ... some more stuff
}

Then just allocate some arrays of these and set members of their 
elements to slices of them.



More information about the Digitalmars-d mailing list