Clarify @ vs & when registering application functions

Started by
11 comments, last by WitchLord 10 years, 7 months ago

Just &, without in or out, will never make a copy of the object. It will always be the reference to the true object as the called function needs to be able to both read from and update the true object.

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

Ah, So when does SetEngineProperty(asEP_ALLOW_UNSAFE_REFERENCES, true) come into play?

Lead Coder/Game Designer for Brutal Nature: http://BrutalNature.com

Manual: Custom options -> Language modifications -> asEP_ALLOW_UNSAFE_REFERENCES

Regards,

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

This topic is closed to new replies.

Advertisement