On 29 November 2012 10:08, Alexander Klenin kle...@gmail.com wrote:
On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be
wrote:
Will global variables and static global arrays be always initialized to
zero?
Yes.
Then I suggest to amend the first paragraph of
Apologies for revisiting an old thread.
michael.vancann...@wisa.be wrote:
Will global variables and static global arrays be always
initialized to
zero?
Yes.
Are there cases where locals are set to a sane initial state, e.g. for
strings and dynamic arrays? What about (references to)
On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
Will global variables and static global arrays be always initialized to
zero?
Yes.
Then I suggest to amend the first paragraph of
http://www.freepascal.org/docs-html/ref/refse22.html
which directly contradicts
On Thu, 29 Nov 2012, Alexander Klenin wrote:
On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
Will global variables and static global arrays be always initialized to
zero?
Yes.
Then I suggest to amend the first paragraph of
Alexander Klenin wrote / napĂsal(a):
On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
Will global variables and static global arrays be always initialized to
zero?
Yes.
Then I suggest to amend the first paragraph of
michael.vancann...@wisa.be wrote:
On Thu, 29 Nov 2012, Alexander Klenin wrote:
On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe
jonas.ma...@elis.ugent.be wrote:
Will global variables and static global arrays be always initialized to
zero?
Yes.
Then I suggest to amend the first paragraph of
On Thu, 29 Nov 2012, Mark Morgan Lloyd wrote:
michael.vancann...@wisa.be wrote:
On Thu, 29 Nov 2012, Alexander Klenin wrote:
On Wed, Nov 28, 2012 at 2:29 PM, Jonas Maebe jonas.ma...@elis.ugent.be
wrote:
Will global variables and static global arrays be always initialized to
zero?
Yes.
michael.vancann...@wisa.be wrote:
You must initialize local variables.
Are there cases where locals are set to a sane initial state, e.g. for
strings and dynamic arrays? What about (references to) objects?
Managed types are normally initialized. That means Ansistrings,
UnicodeString, and
On Thu, 29 Nov 2012, Mark Morgan Lloyd wrote:
michael.vancann...@wisa.be wrote:
You must initialize local variables.
Are there cases where locals are set to a sane initial state, e.g. for
strings and dynamic arrays? What about (references to) objects?
Managed types are normally
michael.vancann...@wisa.be schrieb:
Are there cases where locals are set to a sane initial state, e.g. for
strings and dynamic arrays? What about (references to) objects?
Managed types are normally initialized. That means Ansistrings,
UnicodeString, and COM interfaces and dynamic arrays
On 28 Nov 2012, at 08:47, Alexander Klenin wrote:
Will global variables and static global arrays be always initialized
to zero?
Yes.
Jonas
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
Will global variables and static global arrays be always initialized to zero?
It seems that they in fact are, and there is quite a lot of code
relying on it. On the other hand, the documentation denies that.
What is the official position?
--
Alexander S. Klenin
12 matches
Mail list logo