Главная страница
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.019 c
2-1221073858
Alral
2008-09-10 23:10
2008.10.19
TBitmap.Transparent


2-1221125658
MdbPero
2008-09-11 13:34
2008.10.19
Использование Microsoft Agent


2-1221084613
demon
2008-09-11 02:10
2008.10.19
Как загрусить html файл?


3-1208167098
Виталий Панасенко(дом)
2008-04-14 13:58
2008.10.19
select from select в FireBird 2.0.1/2.1


2-1221206822
N77
2008-09-12 12:07
2008.10.19
Next, Prior (SQL)