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

--- Comment #6 from Wolfgang Jäger <[email protected]> ---
Created attachment 115862
  --> https://bugs.documentfoundation.org/attachment.cgi?id=115862&action=edit
Demonstration

(In reply to Mike Kaganski from comment #4 - mainly)

As far as I can understand the intention is to get a user function evaluated
"by intersection" as described in the section
3.3 Non-Scalar Evaluation (aka 'Array expressions') found in
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1017866_715980110
of the ODF specifications, so far only applicable to expressions with arrays
placed in positions which are specifid to accept only scalars.
This cannot be implemented by an ordinary custom function because it doesn't
know the cell position from where it wa called nor the position of the raneg
from where the parameters were calculated. However, the specification is
binding not the function but the evaluator. The evaluator, however, cannot do
it without knowing that a specific position should only accept scalars. If we
know the type (and for the parameters of functions implemented by ourselves we
should know) we can help the evaluator applying a neutral scalar operand and
operator (""&  or *1 e.g.) to our arrays. In fact the evaluator does apply
intersection under this condition. The intersection applies to every single
parameter position then. 

The attached Calc document is demonstrating this for the example described by
@Mike_Kaganski in the above mentioned comment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to