You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2017/03/06 23:33:33 UTC

[jira] [Resolved] (SYSTEMML-259) If no return type specified, DML/PyDML function calls require an lvalue

     [ https://issues.apache.org/jira/browse/SYSTEMML-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deron Eriksson resolved SYSTEMML-259.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: SystemML 1.0

Fixed by [PR411|https://github.com/apache/incubator-systemml/pull/411].

> If no return type specified, DML/PyDML function calls require an lvalue
> -----------------------------------------------------------------------
>
>                 Key: SYSTEMML-259
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-259
>             Project: SystemML
>          Issue Type: Improvement
>          Components: APIs
>            Reporter: Deron Eriksson
>            Assignee: Deron Eriksson
>            Priority: Minor
>             Fix For: SystemML 1.0
>
>
> If a function is defined in DML or PyDML with no return type, and then this function is called, it requires an lvalue variable to be assigned the value returned from the function, even though no value is returned from the function.
> DML Example (assigning to z is required):
> {code}hello = function() {
> 	print('hi')
> }
> z = hello(){code}
> PyDML Example (assigning to z is required):
> {code}def hello():
> 	print('hi')
> z = hello(){code}
> DML Example (error: "function call needs to have lvalue (Quickfix: change it to 'tmpVar = hello(...)')"):
> {code}hello = function() {
> 	print('hi')
> }
> hello(){code}
> PyDML Example(error: "function call needs to have lvalue (Quickfix: change it to 'tmpVar = hello(...)')"):
> {code}def hello():
> 	print('hi')
> hello(){code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)