OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: [OASIS Issue Tracker] Commented: (ODATA-313) Problem with "Function Overload Resolution" due to null values having ambiguous type

    [ http://tools.oasis-open.org/issues/browse/ODATA-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32838#action_32838 ] 

Evan Ireland commented on ODATA-313:

Unfortunately, 'null' isn't the only issue with overload resolution.

Also we must consider ABNF for numeric literal values. The literal:


is a valid literal for all numeric types, and therefore could produce ambiguity in overload resolution.

For Int64, Single, Double and Decimal, the type suffix ("L", "f", "d", or "m") is optional. 

However for SByte, Byte, Int16, Int32 there is no type suffix available. Are we then going to define type suffixes for all the other numeric types, or encode them with a type prefix, like Int32'7'?

> Problem with "Function Overload Resolution" due to null values having ambiguous type
> ------------------------------------------------------------------------------------
>                 Key: ODATA-313
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-313
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData Protocol , OData URL Conventions 
>    Affects Versions: V4.0_WD01
>         Environment: [Proposed]
>            Reporter: Evan Ireland
>            Assignee: Ralf Handl
>             Fix For: V4.0_WD01
> CSDL spec (2013-03-12) states in section "Function overload resolution"
>   Functions overloads are supported in OData, meaning a service MAY expose multiple functions with the same name that take a different set of parameters.
>   When a function is invoked (using any of the three parameter syntaxes) the parameter names and parameter values are specified in the URL, and the parameter types can be deduced from each parameter value. The combination of the Function name and the unordered list of parameter types and names is always sufficient to identify a particular function overload.
> However, if one or more parameter values are null, there might be multiple functions (with same-named parameters but differing types corresponding to the null-valued parameter(s)). A null value can resolve to any primitive/complex/entity type. Thus overload resolution would be ambiguous.

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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]