On Tuesday, 17 April 2012 at 00:00:57 UTC, Andrej Mitrovic wrote:
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;
thanks, it works
On Tuesday, 17 April 2012 at 00:00:57 UTC, Andrej Mitrovic wrote:
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;
thanks, it works