On 09/23/2012 07:37 PM, Andrej Mitrovic wrote:
On 9/7/12, Kevin McTaggart <kevin.mctagg...@drdc-rddc.gc.ca> wrote:snipThere's one thing nobody mentioned yet, and that is that we're already using this syntax in the language -- in foreach loops: struct Foo { int x; } Foo[] arr = [{4}, {5}, {6}]; foreach (idx, ref val; arr) { val.x = idx; } ...
That is not true. The only 'ref' in that code is a declaration site annotation.