Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.10.19;
Скачать: 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 вся ветка

Текущий архив: 2008.10.19;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.018 c
1-1200878862
IGray
2008-01-21 04:27
2008.10.19
Как создать в цикле Array Of Const?


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


2-1221559854
Outland
2008-09-16 14:10
2008.10.19
BitBtn1 и Glyph


2-1221222546
savyhinst
2008-09-12 16:29
2008.10.19
Про DLL


1-1200566541
Layner
2008-01-17 13:42
2008.10.19
Можно ли из сервиса вызвать форму (для настройки это сервиса)