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 2016/02/17 00:28:18 UTC
[jira] [Created] (SYSTEMML-525) Treat variable of const str
concatenations as const str in read iofilename
Deron Eriksson created SYSTEMML-525:
---------------------------------------
Summary: 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
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)