Вниз
Скачать: CL | DM;

Const как var.   Найти похожие ветки 

 
Drowsy   (2008-09-14 22:53) [0]

const
     ProjectsDir : string = "";
     ProjectDir  :  string = "";
     WorkBasesDir: string = "";
Интересно, в одном проекте подобные константы ведут себя как переменные, например, позволяют присваивать значения, а в другом
выдаёт ошибку. Почему?


 
oxffff ©   (2008-09-14 22:57) [1]

см. $J

The $J directive controls whether typed constants can be modified or not. In the {$J+} state, typed constants can be modified, and are in essence initialized variables. In the {$J-} state, typed constants are truly constant, and any attempt to modify a typed constant causes the compiler to report an error.


 
Drowsy   (2008-09-14 23:09) [2]

О!!!!
Большое спасибо, oxffff!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.01 c
4-1197829713
Alex_Nik
2007-12-16 21:28
2008.10.19
Подключались ли внешние носители информации


15-1220006168
Prohodil Mimo
2008-08-29 14:36
2008.10.19
JavaScript


15-1219823314
Darvin
2008-08-27 11:48
2008.10.19
Эффекты на висте. Какие будут мнения?


2-1221137985
<Evil>
2008-09-11 16:59
2008.10.19
Глюк или???


15-1220089316
Kostafey
2008-08-30 13:41
2008.10.19
С днем рождения ! 30 августа




   Наверх