Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: nfactorial on September 12, 2003, 12:37:14 pm

Title: Variable initialization
Post by: nfactorial 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!
Title: Re: Variable initialization
Post by: benc 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