Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: No on Motion P1788/M007.01_NaI



In reply to Hossam Fahmy, RBK wrote:
> asking whether a datum is initialized or not may or may not
> be within the scope of our discussion.

What is within the scope of the standard is the definiion of a NaI
to be used to represent unitinialized intervals.  How this is used
is up to language environments, but wih a standard at least the
choice will be clear.

For example, some environments may not want to initialize "automatic"
(i.e. stack-allocated variables), depending on the program to know
what it is doing -- or perhaps issuing warnings based on crude flow
analyis.  Perfect flow analysis is not possible (Turing), so there
will be cases where he programmer knows that the variable will be
set before being used, but the compiler may not.

Michel.
---Sent: 2009-09-16 12:18:04 UTC