[ http://tools.oasis-open.org/issues/browse/OFFICE-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22840#action_22840 ]
Patrick Durusau commented on OFFICE-2470:
-----------------------------------------
Comment on the last version:
***
Operators and functions in OpenFormula are evaluated according to their definitions by applying the following rules:
1. The values of all argument expressions are computed, that is, formulas are normally "eagerly" evaluated. Exceptions to eager evaluation are noted in the function's specification (e.g., see IF).
***
Suggest:
Operators and functions in OpenFormula are evaluated according to their definitions by applying the following rules:
1. The values of all argument expressions are computed. Exceptions to computation of all arguments are noted in a function's specification.
Note: The practice of computing all argument expressions is known as "eager" evaluation. The IF function is an example of a function that does not require computation of all arguments.
> 3.2 Expression Calculation is a mixure of observations, rules and possible suggestions - NEEDS-DISCUSSION
> ---------------------------------------------------------------------------------------------------------
>
> Key: OFFICE-2470
> URL: http://tools.oasis-open.org/issues/browse/OFFICE-2470
> Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
> Issue Type: Bug
> Components: OpenFormula
> Affects Versions: ODF 1.2 CD 05
> Reporter: Patrick Durusau
> Assignee: Eike Rathke
> Fix For: ODF 1.2 CD 06
>
>
> 3.2 Expression Calculation is a mixture of observations, rules and possible suggestions.
> For example, it starts by saying formulas are recalculated from "outside in," only to confess a few paragraphs later that is how it "appears to the end user."
> There is one really glaring hole in my proposal, that also exists in the current language.
> We describe the ordering of operators but as far as I can tell, we don't address the situation where there is a mixture of operators and functions.
> Note that I changed #1 from constant number/string and added error.
> As near as I can determine, the only possible outcomes of any expression are:
> 1) a number
> 2) a string
> 3) an error
> 4) a reference
> So, application of these rules self-terminates when any of those conditions obtain.
> Yes, that removes "constant number," "constant string" but those are defined elsewhere anyway.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira