You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Matthias Boehm (JIRA)" <ji...@apache.org> on 2016/02/17 09:36:18 UTC

[jira] [Issue Comment Deleted] (SYSTEMML-525) Treat variable of const str concatenations as const str in read iofilename

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

Matthias Boehm updated SYSTEMML-525:
------------------------------------
    Comment: was deleted

(was: 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)