Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [qvto-dev] QVT 1.2 RTF Ballot 3 preview 2 : Issue 19146: Specify List::reject and other iterations.

Hi

Forgot to send this earlier.

On 07/02/2014 08:57, Sergey Boyko wrote:


A List is not a Collection, and List has such bad characteristics that perhaps List should be made as hard as possible to use, certainly sufficiently so that Sequence is always used in preference.

(If you use List or Dict as a mapping argument, the List or Dict has to be deep-cloned before it contributes to the trace record! Oops QVTo bug.

Of course it does. QVTo recursively clones collections whenever they fall into trace record (not a deep-clone you mentioned). Since List and Dict are treated as collections they are certainly recursively cloned into trace storage.
 
But Collections are immutable so there is no need to clone at all.

Lists and Dict are muatble so a deep-clone is required.

Bug 427348 demonstrates the failure of the cloning.

    Regards

        Ed

Back to the top