Главная страница
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.014 c
2-1221290498
@!!ex
2008-09-13 11:21
2008.10.19
Как добавить пункт меню в контекстное меню Explorer a


1-1200589968
ply
2008-01-17 20:12
2008.10.19
доступ к функциям формы из фрейма


4-1196784303
aleko
2007-12-04 19:05
2008.10.19
закрытие чужого окна


2-1221131062
programmer90
2008-09-11 15:04
2008.10.19
Команда в ShellExecute


1-1200714304
Архип
2008-01-19 06:45
2008.10.19
Выборка