Author Topic: Variable initialization  (Read 3526 times)

nfactorial

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Variable initialization
« on: September 12, 2003, 12:37:14 pm »
I've set a boolean variables default value to 'false' (inside the Attribute property dialog (I set the 'initial' value to 'false')) hoping EA would set this value in the class constructor, similar to:

MyClass::MyClass() : m_MyBoolean( false )

but that doesn't occur, is there some setting I'm missing to get this functionality, or is this impossible?

n!

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Variable initialization
« Reply #1 on: September 30, 2003, 11:10:21 pm »
Hi n!

Currently, EA does not generate intialisation code base on attribute's default values.  It's something we are looking into as a longer term endeavor.

Regards,
Ben