Re: [Vala] [PATCH] Reference list members when referencing a list.



On Mon, 2007-03-19 at 08:32 +0100, Mathias Hasselmann wrote:
This should make assignments to values of type List<G> work.

Nevertheless we have to think about how assignments to such types can be
improved: Deep copies avoid memory-leaks, but they are deadly wrong as
no user of Vala would expect such a heavy operation on simple assignments.
This deep copy dramatically increases runtime complexity for all methods
working with list references by factor n.

Thanks, applied to SVN. Expensive assignments will generate warnings
since r247.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]