Re: A: a new bug to old plain C

Andrey Tarasevich via Gcc-help <[email protected]> Sun, 7 Dec 2025 15:26:24 -0800 (PST)
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
> On 12/07/2025 2:44 PM PST Segher Boessenkool <[email protected]> wrote:
> I am saying that explicit casts (which means using a cast operator) are
> never ever required.
> 
> And no, you never have to go via pointer stuff either.  Just assign to
> something that actually holds the type you are trying to convert to.

Um... That's just doesn't make sense to me. You won't be able to assign anything to 
anything unless your assignment complies with the constraints if the assignment 
operator

https://www.iso-9899.info/n1570.html#6.5.16.1p1

> Don't hide aything!  It won't help you!

Er... But that's exactly what an explicit conversion (a cast) does (compared to 
an implicit one): it converts types without "hiding anything".

-- 
Best regards,
Andrey