Re: A: a new bug to old plain C
LIU Hao via Gcc-help <[email protected]>
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <[email protected]> |
在 2025-11-26 21:48, Александр Поваляев 写道: > I want to emphasize here "One of the following shall hold"!. > So, if one of the following is being hold, the conversion/assignment is permitted. > But USE THE SAME TRICK WITH DISJUNCTION AND CONJUNCTION to prove that "Foo**" -> const Foo * const * > const" is not correct. > IT IS WRONG WAY. > To be logically correct you need to show that NO ONE OF THE 6.5.17.2 STATEMENT is TRUE for "Foo**" -> > const Foo * const * const" logic. If you had read the damn standard, you would have known that the others are all about arithmetic types, structs and unions, pointer to void, and conversion to `bool`, and apparently they do not apply. Pity. Because you are writing C, you don't need to cast the pointer to `struct zzz const * const * const`; you just cast to `void*`. If you don't know that, you cannot know more C than me. I'm already very disappointed about this thread, because half of the messages are about `char **` does not implicit convert to `const char **` which is technically a different question from yours. And now I'm getting more, because of your disrespect. > But it is ok. It is usually being studied at some university courses, so if you decide to enter some high > education school you will learn all of these things. You are in no position to say that. We are well educated, and apparently you are not such a person. -- Best regards, LIU Hao
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEYmSQWY4DEzq4FUs4hfveZl3ogBsFAmknJw8FAwAAAAAACgkQhfveZl3ogBuZ kQ//e730lrxFWXXh7q/BjB0Ogp85FUAwYLa3gX6b0YpZcsJGCAKuNWRiA90MpYRkTj9M2j4knf3Y tY8LyuWZTA4kcZkHTFbRbqr5z+ZfuZ8hcMB+RUZnpbkYuJWDBPo49ByXZQFJE0lUq8qO2wbEZdyR FtMGAaYR0VnfsUckoObjox/4yZMyuTidvt6W0JeLsP6OEPk0h82Vm9QG0IHsp6OUQByJ75ldSDcb seyxDQTLijmNfL9epmGaK/pGQJcU/bxORWe/v05r/h4PIgcC1dBB+kogW01Z6T9j1PGAmMB2Csba dsLoovlXSsEgGjp2pGXGhT4u40Vit3z2YBkwWS4lWIl0JbxTYI0hKXb3Vso2BZf//apAbLlk1ifi uGaIFnKXnXCoHKNTQ8FM+Co7R8t2icrwjNuovzqIUIAhuWZbWwR8k/UBd3vnUSG+z0FleUqGwnuu JVcuwroYPh9xnneLKJwTvAAvtu1G5EeUZXurKLsDKVlc6VQ4cRIbRcXqRJjKdyg0wfsbKtLwRUWZ CIdwnxUHC3xO6M5vY26sQzpP/kb9yKgBSk1wDZ2UToR96z9w6Z77gCvojR8mK63/UU/1uZJbSPkj IgHWi6lZULlChx3AqdEC8lzWtE+WW7BAbqB01Ttfipvh07HN7LiXUv+DaZwHfKr6+FQKcrJsa2MU ZRY= =s9ds -----END PGP SIGNATURE-----