Главная страница
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.012 c
2-1221159246
programmer90
2008-09-11 22:54
2008.10.19
Переменные среды в Delphi


2-1221068460
YoungerDelphist
2008-09-10 21:41
2008.10.19
SQL


1-1200667886
Adm
2008-01-18 17:51
2008.10.19
Потоки команд


15-1219338554
Sergey Masloff
2008-08-21 21:09
2008.10.19
Несколько вакансий. Москва. Delphi, Oracle. Не гуру


4-1198242400
Dim07
2007-12-21 16:06
2008.10.19
Готовность принтера