Главная страница
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.013 c
11-1194295636
Elec3C
2007-11-05 23:47
2008.10.19
Вопрос по OpenSaveDialog у


11-1194543607
Sinko
2007-11-08 20:40
2008.10.19
KOL CE + Lazarus +Иероглифы


2-1221219767
bmw
2008-09-12 15:42
2008.10.19
Определитть последнюю запись.


6-1194361857
weteatr
2007-11-06 18:10
2008.10.19
задача про сет помогите!!


15-1217581038
AndreyV
2008-08-01 12:57
2008.10.19
Мониторные наушники Sennheiser