https://bugs.documentfoundation.org/show_bug.cgi?id=146082

--- Comment #6 from Mike Kaganski <[email protected]> ---
(In reply to Julien Nabet from comment #5)

We have some utter mess with by-reference handling of array elements in general
(and not only in array - but it needs case-by-case analysis). We already were
hit several time in different forms (including some strange behavior with
ReDim); but first of all, I would love to see (or develop) some formal
specification where the ByRef semantics are needed - which array operations?
Assignment of array to another variable - do they become pointers to the same
array? or are different arrays with pointers to same elements? or different
arrays with independent elements? Passing to ByVal function argument? ReDim?
Here I suppose Andrew is the greatest expert who could at least suggest a list
of cases to consider, with suggested expected semantics ... and then test all
variations of element types -s strings, numbers, UNO and user types,
VBA-specific like enums... and then see the matrix of problems - and then try
to revise the implementation to fix that. Because now I feel that trying to fix
this thing would not help, only resulting in regression because of not seeing
the whole picture.

(Anyway, my opinion with this bug is that whenever the author of the bug is
Andrew, we must just automatically confirm :D - there's no one more
knowledgeable in this matter on this planet.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to