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

Matthias Boehm commented on SYSTEMML-525:
-----------------------------------------

The issue is missing constant propagation on read io filenames.

> Treat variable of const str concatenations as const str in read iofilename
> --------------------------------------------------------------------------
>
>                 Key: SYSTEMML-525
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-525
>             Project: SystemML
>          Issue Type: Improvement
>          Components: Parser
>            Reporter: Deron Eriksson
>            Assignee: Matthias Boehm
>            Priority: Minor
>
> If a string variable value is the result of constant string concatentations, 
> perhaps it should be treated as a constant string since this can be 
> determined at compile time.
> {code}
> # works
> x = "m";
> y = ".csv";
> b = read(x + y);
> # doesn't work
> z = "m" + ".csv";
> b = read(z);
> {code}
> The second read statement above generates the following error:
> {code}
> for read method, parameter iofilename can only be a const string or const 
> string concatenations
> {code}
> Since the z value results from the concatenation of 2 string constants, I 
> would think it could be treated as a string constant itself.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to