| Issue 171: | Std.format side effect | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
var obj = {a : {b: 1, c : "a"}};
for (field in Reflect.fields(obj)) {
var a = Reflect.field(obj, field);
trace(Std.format("${a}"));
trace(field + " - " + Reflect.fields(a));
}
What is the expected output? What do you see instead?
Commenting out and back the line
trace(Std.format("${a}"));
changes the Reflect.fields(a) result!
What version of the product are you using? On what operating system?
hxcpp svn Revision: 468
Please provide any additional information below.
Jun 12, 2012
#1
tyn...@gmail.com
Jun 13, 2012
Ok - well analyzed. I think this is a haxe issue - I have come across this myself in other forms (tracing a variable causes to be typed as string). I will close this here, but it is probably worth bringing up on the mailing list and see if there is some consensus on the required action.
Status:
WontFix
Jun 20, 2012
I have opened a thread on the mailing list on that: https://groups.google.com/forum/#!topic/haxelang/eOzz4j93XUU |