Code: Select all
$a = eval("A.b.c.d.");
msg($a, "1");Cheers,
Filehero
/e: added "[NO BUG]" to title
Code: Select all
$a = eval("A.b.c.d.");
msg($a, "1");Code: Select all
$b = "baby";
$d = "dance";
$str = eval("A.$b.can.$d.");
msg($str, "1")The reason why I nevertheless posted this complaint is that in any other programming language I know both statement sets are perfectly and truly equivalent - and I think XY SC should follow this logic.PeterH wrote:Split it up: from $str = eval("A.$b.can.$d.");
make:
$val = "A.$b.can.$d.";
$str = eval($val);
Yes, you're right, they are identical, my cold, erm fault.PeterH wrote: $str = eval("A.$b.can.$d.");
*is* identical to the 2 statements:
$val = "A.$b.can.$d.";
$str = eval($val); // string to evaluate is a.baby.can.dance. => Syntax Error
Well - also upon the strong advice of my headaches - I see a sufficient amount of truth there. Changed the tread title.PeterH wrote:So: no bug here.