Automatic Foreach

terranium spam at here.lot
Mon Apr 28 02:00:40 PDT 2008


Bill Baxter Wrote:
> I think that already means call foo with a full slice of array, doesn't 
> it?  Anyway, even if it doesn't you can overload opSlice() currently so 
> that array[] can mean anything you want it to.
array.foo() also has an existing meaning of foo(array)



More information about the Digitalmars-d mailing list