Dnia 09-12-2009 o 09:54:33 Lutger
napisał(a):
Tomek Sowiński wrote:
const(FAQ) says: "When doing a deep copy of a data structure, the
invariant portions need not be copied."
I'm trying to imagine what code would benefit from such optimization.
immutable struct Large { whole lotta data... }
Tomek Sowiński wrote:
> const(FAQ) says: "When doing a deep copy of a data structure, the
> invariant portions need not be copied."
> I'm trying to imagine what code would benefit from such optimization.
>
> immutable struct Large { whole lotta data... }
>
> struct Other { Large l; }
>
> void f
On Wed, 09 Dec 2009 01:18:46 +0100, Tomek Sowiński wrote:
const(FAQ) says: "When doing a deep copy of a data structure, the
invariant portions need not be copied."
I'm trying to imagine what code would benefit from such optimization.
immutable struct Large { whole lotta data... }
struct Oth
const(FAQ) says: "When doing a deep copy of a data structure, the
invariant portions need not be copied."
I'm trying to imagine what code would benefit from such optimization.
immutable struct Large { whole lotta data... }
struct Other { Large l; }
void funkcja(Large s); // no reference anno