Does anyone know if you can set anything in the Rose Model, which will
cause a call to a Base class constructor to be included, on C++ Code
Generation, into the "hasinit" section of a Derived class constructor
;  the "hasinit" section obviously already inserts any attribute
initial values. At the moment I'm adding the base class constructor
calls into the manually maintained "initialisation" section of the
derived class constructor.

ie:-


I would like to do THIS :-

Derived::Derived(int val1, int val2)
// begin Rose code delimiter hasinit preserve=no
: m_Value(val1), Base(val2)
// end Rose code delimiter hasinit 
// begin Rose code delimiter initialization preserve=yes
// end Rose code delimiter initialization 
{
// begin Rose code delimiter body preserve=yes
// end Rose code delimiter body 
}


rather THAN:

Derived::Derived(int val1, int val2)
// begin Rose code delimiter hasinit preserve=no
: m_Value(val1)
// end Rose code delimiter hasinit 
// begin Rose code delimiter initialization preserve=yes
, Base(val2)
// end Rose code delimiter initialization 
{
// begin Rose code delimiter body preserve=yes
// end Rose code delimiter body 
}


                any help would be appreciated,

                        Mark Helie

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to