Главная страница
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.017 c
1-1200714304
Архип
2008-01-19 06:45
2008.10.19
Выборка


1-1200559310
Zheksik
2008-01-17 11:41
2008.10.19
Перекрашенные ячейки StringGrid_a и выделение.


4-1198011534
DevilDevil
2007-12-18 23:58
2008.10.19
Определить путь до файла, имея его Handle


3-1208198634
Maxim
2008-04-14 22:43
2008.10.19
ADO в WebSnap


15-1219850970
Урсулапов
2008-08-27 19:29
2008.10.19
Это вирус такой новый?