osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lies in education [was Re: The "loop and a half"]


On Thu, Oct 12, 2017 at 5:35 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Chris Angelico <rosuav at gmail.com>:
>
>> On Thu, Oct 12, 2017 at 2:43 AM, Marko Rauhamaa <marko at pacujo.net> wrote:
>>> That is not immediately all that significant but points to subtle
>>> incompatibilities between the data models of C and C++.
>>
>> Indeed - their handling of empty structs is different. But that
>> doesn't invalidate my point; how often do you declare a variable that
>> has nothing in it?
>
> In my case, this particular problem caused a bug once some years back.

Once. Probably in your entire career. In my case, never, and I spent
about fifteen years of my life writing mostly either C or C++ code.
This is NOT common.

ChrisA