[ 
https://issues.apache.org/jira/browse/SYSTEMML-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15975582#comment-15975582
 ] 

Deron Eriksson commented on SYSTEMML-259:
-----------------------------------------

Fixed by https://github.com/apache/incubator-systemml/pull/463. Thank you 
[~mwdus...@us.ibm.com] for tracking down the issue.

> 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)

Reply via email to