funcdef void F();
array<F@> arr;
void f()
{
arr[0]();
}
The same issue happens here:
F@ g()
{
return null;
}
void f()
{
g()();
}
Speaking of funcdefs, Is it possible to allow them to be shared?
funcdef void F();
array<F@> arr;
void f()
{
arr[0]();
}
F@ g()
{
return null;
}
void f()
{
g()();
}
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
funcdefs are automatically shared as long as all types (arguments and return value) are shared.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game