Are global variables in Pascal Script zero-initialized?

前端 未结 1 1877
南方客
南方客 2021-01-16 09:08

When I declare a global variable in [Code] section (Pascal Script) of Inno Setup script, is it automatically initialized to zero/empty value? Or do I have to ex

相关标签:
1条回答
  • 2021-01-16 09:41

    Variables are automatically initialized in Pascal Script afaik.

    I thought that I also read this in earlier times somewhere in the docs, but I could not find a clear statement in documentation again. However, if you look at the examples from Pascal Script's official manual, variables are also not always initialized there. In the first code on this page for example, strings are added to Messages without having it initialized before.

    0 讨论(0)
提交回复
热议问题