On 4/17/12, darkstalker <slayerbe...@gmail.com> wrote: > It possible to have 'p' passed by reference?
Yes and the answer is in the question: foreach (ref p; a) p = 42;
On 4/17/12, darkstalker <slayerbe...@gmail.com> wrote: > It possible to have 'p' passed by reference?
Yes and the answer is in the question: foreach (ref p; a) p = 42;