[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How does string.format handle undefined behavior?
 
- From: Roberto Ierusalimschy <roberto@...>
 
- Date: Mon, 6 Sep 2021 14:40:49 -0300
 
> -----------------------------------------------------
> 3.4.3
> 
> 1 undefined behavior
> 
> BEHAVIOR, upon use of a nonportable or erroneous program construct or of
> erroneous data, FOR WHICH THIS INTERNATIONAL STANDARD IMPOSES NO
> REQUIREMENTS
(Emphasis added.) This definition only adds to the confusion.
Saying nothing satisfies this definition: If something is not mentioned
by the standard, the standard obviously imposes no requirments, and
therefore that something is undefined behavior.
-- Roberto