MISRA Discussion Forums

Full Version: the definition of distinct
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

in the Rule 5.1, 5.2, 5.3, 5.4 and 5.5.

When portability is not our concern:

Can we use the implementation defined limits for the definition of distinct?

Best regards,
Takafumi Wakita
The amplification for rule 5.1 etc: states that the identifiers be "distinct within the limits imposed by the implementation". Therefore the implementation defined limits for the definition of distinct can be used.

Directive 1.1 requires that reliance on such limits be documented. Exceeding the standard's minimum limits may effect portability.