Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Fake static function restrictions changed

$
0
0

Hi, it seems that restrictions for static functions (global functions with namespace of the class name) have changed. The older versions of AngelScript engine seemed capable of computing the uniqueness of a funcion based on its input parameters but the current version of 2.34 seems to give up on any global function matching if a name matches a class method (ignoring parameters).
Is this restriction going to be intended going forward?
Example code:
 


void MessageCallback(const asSMessageInfo *msg, void *param)
{
	const char *type = "ERR ";
	if (msg->type == asMSGTYPE_WARNING)
		type = "WARN";
	else if (msg->type == asMSGTYPE_INFORMATION)
		type = "INFO";
	printf("%s (%d …

Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>