Advertisement

Instances with only references

Started by October 31, 2011 04:29 PM
0 comments, last by WitchLord 13 years ago
Is it ok to do the following:

Object@ objRef = Object(foo, bar);


It always worked fine to me as long as the construction parameters are correct. When the constructor is empty (even if its default constructor isn't declared).
...
Yes, this is ok. It will create a new instance of the Object type and store its handle in the objRef variable.

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