On 01/24/2013 09:35 AM, ParticlePeter wrote:
> I'm fine with returning and using a pointer, fortunately there is no
> difference in syntax as in c, so it doesn't matter.
With the exception that the -> operator is replaced by the dot operator
in D:
MyStruct * p = /* ... */;
// Dot, not ->
p.foo();
p.i = 42;
Ali