Advertisement

@entity or entity?

Started by October 02, 2010 04:59 PM
0 comments, last by WitchLord 14 years, 2 months ago
I have a little situation here. I have a functin:

void myFunc(Entity @ent){    // ...}


And both of the below work fine:

Entity @myEnt;// ...myFunc(myEnt);myFunc(@myEnt);


Is there any difference? Is that supposed to be so?
...
There is no difference. The compiler will implicitly convert myEnt to @myEnt in this case.

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

This topic is closed to new replies.

Advertisement