[Issue 251] foreach does not allow updating inside with block

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 13 16:46:05 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=251





------- Comment #1 from shro8822 at uidaho.edu  2006-07-13 18:46 -------
use inout

  with(foo)
  {
    foreach( int n, inout Bar bar; arr ) bar.a = 100;
  }

haven't tested this but...

INVALID I think


-- 




More information about the Digitalmars-d-bugs mailing list