Вниз
Скачать: 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
2-1221125658
MdbPero
2008-09-11 13:34
2008.10.19
Использование Microsoft Agent


2-1220780338
Point
2008-09-07 13:38
2008.10.19
Как научиться составлять sql запросы.


15-1220026817
Nic
2008-08-29 20:20
2008.10.19
Ветка проектирования


2-1221424850
programmer90
2008-09-15 00:40
2008.10.19
SplashScreen


15-1219820202
Denis__
2008-08-27 10:56
2008.10.19
МГУ ВМК Языки программирования




   Наверх