Create an array with immutable elements

Roman D. Boiko rb at d-coding.com
Thu Jun 14 16:57:35 PDT 2012


immutable struct Node{ string s; }
Node[] f()
{
   Node[] arr = ...?
   return arr;
}

How to fill an array, if its elements are immutable? I want to 
assign values calculated by some function.



More information about the Digitalmars-d-learn mailing list