Advertisement

Bug: Cannot cast from handle to reference

Started by March 02, 2010 12:35 PM
2 comments, last by Thy Reaper 14 years, 8 months ago
I have a bug involving a class property accessor returning a handle, then not being able to immediately use that handle for a reference argument:
	//Works fine
	const string@ id = represent.id;
	const ClauseDesc@ desc = getClauseDesc(id);

	//Cannot convert from "const string@" to "const string ∈"
	const ClauseDesc@ desc = getClauseDesc(represent.id);
In this case, represent.id is a property accessor defined as: "const string@+ get_id() const"; getClauseDesc is defined as: "const ClauseDesc@ getClauseDesc(const string ∈)". This bug is easy to work around, but the result is a bit ugly.
This does indeed look like a bug. I'll look into it.

Thanks for the report.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
This bug should now have been fixed (SVN rev 566).

Thanks,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Thank you.

This topic is closed to new replies.

Advertisement