Информация об изменениях

Сообщение Re[110]: Че ты лыбишься, хам трамвайный? от 23.08.2023 12:31

Изменено 23.08.2023 12:33 σ

Re[110]: Че ты лыбишься, хам трамвайный?
R>стандарт языка говорит, что

R>https://timsong-cpp.github.io/cppwp/intro.defs#defns.ill.formed


R>

3.25
ill-formed program
program that is not well-formed


R>В свою очередь well-formed программа не может порождать неопределенное поведение, по определению: https://timsong-cpp.github.io/cppwp/intro.defs#defns.well.formed


Now I read:

well-formed program
C++ program constructed (emphasis mine) according to the syntax and semantic rules

Если программа constructed according to the syntax and semantic rules , а нарушение semantic rules или ещё что подходящее под определение UB возникнет во время её execution, то это никак не отменит well-formed
Re[110]: Че ты лыбишься, хам трамвайный?
R>стандарт языка говорит, что

R>https://timsong-cpp.github.io/cppwp/intro.defs#defns.ill.formed


R>

3.25
ill-formed program
program that is not well-formed


R>В свою очередь well-formed программа не может порождать неопределенное поведение, по определению: https://timsong-cpp.github.io/cppwp/intro.defs#defns.well.formed


Now I read:

well-formed program
C++ program constructed (emphasis mine) according to the syntax and semantic rules

Если программа constructed according to the syntax and semantic rules , а нарушение semantic rules, или ещё что-то подходящее под определение UB, возникнет во время её execution, то это никак не отменит well-formed