Advertisement

Feature Request: No default ctor if another ctor is provided

Started by May 21, 2009 06:08 PM
1 comment, last by Wavesonics 15 years, 6 months ago
I was just noticing, that if you define a script class with a non-default constructor, a default constructor is still provided for you, meaning with a class like:

class A {
  int m_i;

  A( int i ) {
    m_i = i;
  }  
}

Class A will still have 2 constructors, 1 default (auto-generated) and the declared one. It would be nice, as in C++, if a non-default constructor is provided, then the default constructor is not auto-generated.
==============================
A Developers Blog | Dark Rock Studios - My Site
I'll see what I can do.

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
No biggy, just strikes me as something that might prevent certain careless errors on scripters parts and be more defined.
==============================
A Developers Blog | Dark Rock Studios - My Site

This topic is closed to new replies.

Advertisement