Re: [inti] OptionMenu width ?

Jeff Franks <[email protected]> Mon, 05 Jan 2004 20:16:03 +1100
Newsgroups gmane.comp.gnome.inti
Message-ID <[email protected]>
I forgot to add, it is important that the constructor takes no 
arguments. It is the default constructor. You don't need to explicitly 
call the constructor for a virtual or multiplely inherited base class if 
it has a default constructor. There fore you don't need to do this:

MyEntry::MyEntry() : EntrySignals() {}

this will do the same thing, and its easier.

MyEntry::MyEntry() {}

One thing I've done in Inti is to ensure that all virtual and multiplely 
inherited base classes have only a default construcor. It's easier this 
way becuase you don't have to worry about the order of declaration of 
base class constructors. I remember the days of Borlands OWL and this 
was always an area of confusion that caused problems for new programmers 
(like me at the time). Inti sticks the only multiplely inheriting 
interface classes.

Regards,
Jeff Franks.


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click