Instances with only references

Started by
0 comments, last by WitchLord 12 years, 5 months 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).
...
Advertisement
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