[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: thoughts about BIC
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-03-30 1:07:54
[Download RAW message or body]

On Friday 29 March 2002 06:01 am, Rolf Magnus wrote:
> I was wondering if adding member variables always is BIC. Sure, it changes
> the size of the object (and if you don't append them to the end, the
> layout), but where is this size needed? AFAIK only on creation of the
> object, because the system needs to know how much storage to get for it.
> But if the allocation of storage is only done in the library that contains
> the class (e.g. for singletons or objects that are only created through a
> factory), this should not matter, right? So can member variables be added
> to such a class without making it BIC

Yes, if you make sure that the new members are added to the end.

Cheers,
Waldo
-- 
bastian@kde.org  |   SuSE Labs KDE Developer  |  bastian@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic