systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deron Eriksson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYSTEMML-259) If no return type specified, DML/PyDML function calls require an lvalue
Date Mon, 03 Apr 2017 15:32:42 GMT

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

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

I'll take a look.

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

Mime
View raw message