Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Constructor initializer code (member initialisation list)
Topic Summary:
Created On: 2-May-2007 14:04
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 2-May-2007 14:04
User is offline View Users Profile Print this message


Dan McNeill

Posts: 10
Joined: 1-Feb-2007

Hi,

When you give Rhapsody code to go in a constructor's member initialisation list, it seems to put it (I think)
- after auto-generated code to initialise member variables
- before auto-generated code to initialise parts

Does anyone know if it's possible to change this ordering?

We are trying to eliminate all compiler warnings, but the compiler complains because the ordering in the resulting list differs from the actual ordering. This is because in the "initializer" text we are calling a base class constructor, and Rhapsody inserts the code to initialise member variables before this.

Thanks,
Dan
Report this to a Moderator Report this to a Moderator
 3-May-2007 08:01
User is offline View Users Profile Print this message


Martin Dowie

Posts: 6
Joined: 13-Apr-2006

Can you reply with a small demo of your problem?
Cheers
-- Martin
Report this to a Moderator Report this to a Moderator
 3-May-2007 12:27
User is offline View Users Profile Print this message


Dan McNeill

Posts: 10
Joined: 1-Feb-2007

Not easily as I don't have Rhapsody on this machine, but I'll see what I can do...
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.