Issue 103: Reflect.copy
Status:  New
Owner: ----
Reported by lucadelt...@googlemail.com, Mar 14, 2011
What steps will reproduce the problem?
enum S {
	a(x:String);
}

class Main {
	static function main() {
		var y = a("hi");
		var z = Reflect.copy(y);
		trace(y);
		trace(Reflect.copy(y));
		trace(z);
		trace(Reflect.copy(a("hi")));
		trace(Reflect.copy("hi"));
		trace(Reflect.copy(10));
	}
}

What is the expected output? What do you see instead?
expect to see:
a(hi)
a(hi)
a(hi)
a(hi)
hi
10

instead get:
a(hi)
{  }
null
{  }
hi
{  }

What version of the product are you using? On what operating system?
2,07,0

Mar 15, 2011
Project Member #1 gameh...@gmail.com
According to the API, Reflect.copy is only really for anonymous objects.
However, it would be good to get this going, so I'll have a think about it.