Re: Feature request for "friendship" of pointers in "C"

2020-03-17 Thread Holger Lamm
Hi, Am 02.02.20 um 08:44 schrieb aotto: Hi, the following scenario has a "definition hole" in the "C" language code example: - struct base { ... }; struct A { struct base obj; ... } aObj; struct B { struct base obj; ... } bObj; void method_base (struct base

Re: Feature request for "friendship" of pointers in "C"

2020-03-17 Thread Holger Lamm
Am 17.03.20 um 22:41 schrieb Andreas Schwab: On Mär 17 2020, Holger Lamm wrote: No. The order of elements of structures in memory is implementation defined and not guaranteed to be the order of enumeration in the definition. That is not true. The first member is guaranteed to have the same