Skip to content

Bug in SetString?

Nicolas Marsic requested to merge BugSetNumberParser into master

Hi Christophe,

I tried the following example from the ONELAB wiki: SetString[ "a string", "hello" ]; s = GetString["a string"];

I unfortunately ran into a syntax error...

I looked in the bison code, and found this for the tSetString: tSetString LP String__Index ',' StringExpr RP tEND.

I don't see why the first argument is a String__Index and not a StringExpr (like the second one).

I tried to change this (i.e. to replace String__Index with StringExpr), and it worked as expected...

Could it be that there's a little bug, or am I missing something?

I wish you a nice weekend,

Nicolas.

Merge request reports