This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: using offsetof with g++


Michael Matz <matz@suse.de> writes:

| Hi,
| 
| On 6 Nov 2003, Gabriel Dos Reis wrote:
| 
| > The issue is whether or that initialization could be provided in a
| > non-"compromising" way -- such ways (like generalized initializers) are
| > already subject of active works.
| 
| I see.  Although it remains to be seen if it's really worthwhile to add a
| new language construct for something which can already be expressed quite
| conveniently, just to work around this specific issue which also could be
| fixed by relaxing the constraints on offsetof().

I hear you but, it is not clear that "the something" is already
expressed quite conveniently and relaxing the constraints  is a
convenient work around.  Which is the reason of the basic question

   Why do you want to take the offsetof a non-POD?


It is not clear at all that an accumulation of work arounds to
speicific issues makes a simpler language to learn, use and implement.   

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]