Friday, February 3, 2023

Digest for comp.lang.c++@googlegroups.com - 5 updates in 3 topics

Mr Flibble <flibble@reddwarf.jmc.corp>: Feb 03 01:06PM

I forgot how easy it was to invoke C++ ODR-based undefined behaviour when
using nested namespaces! :o
 
header file #1 :-
 
namespace parent
{
class foo
{
};
}
 
header file #2 :-
 
namespace parent::child
{
class foo
{
};
}
 
header file #3 :-
 
namepsace parent::child
{
class bar
{
foo m; // which foo this is depends on header file
inclusion for this translation unit! :o
};
}
 
/Flibble
Bonita Montero <Bonita.Montero@gmail.com>: Feb 03 07:15PM +0100

And what's your practical problem with that ?
 
Am 03.02.2023 um 14:06 schrieb Mr Flibble:
Tim Rentsch <tr.17687@z991.linuxsc.com>: Feb 02 05:42PM -0800


>> This claim isn't right. Any class (or struct) that has at least
>> one virtual function will have a virtual function table. The
 
> Has at least one != every.
 
That's true, but it has no bearing on what I said.
"james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu>: Feb 02 04:36PM -0800

On Thursday, February 2, 2023 at 9:44:06 AM UTC-5, Tim Rentsch wrote:
> Keith Thompson <Keith.S.T...@gmail.com> writes:
...
> > a name.
> Just a quibble: C does have some objects that are not variables
> in the usual sense of the word. ...
 
True, and his comment implies that fact, by using the word "except" - when that exception does not apply, you still have an object, but not a variable.
Tim Rentsch <tr.17687@z991.linuxsc.com>: Feb 02 05:38PM -0800


> True, and his comment implies that fact, by using the word "except"
> - when that exception does not apply, you still have an object, but
> not a variable.
 
I suppose that is one way of reading it. But certainly it
is not the only way of reading it.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: