Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.06.03;
Скачать: CL | DM;

Вниз

small bug in objects.pas   Найти похожие ветки 

 
Thaddy   (2006-10-13 16:05) [0]

procedure FreeObjectInstance(ObjectInstance: Pointer);
should be declared as:
procedure FreeObjectInstance(var ObjectInstance: Pointer);

I wonder why we never spotted that before?
There can be cases where it is important that ObjectInstance is explicitly made nil. See the implementation.


 
Vladimir Kladov   (2006-10-14 11:38) [1]

Sorry, but it is not obvious for me. Though this unit is not from me, I can not see why "var" shoud be there: ObjectInstance is not assigned anywhere in FreeObjectInstance.



Страницы: 1 вся ветка

Текущий архив: 2007.06.03;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.198 c
15-1178888543
homm
2007-05-11 17:02
2007.06.03
Вторая по счету промо-акция?


5-1154952220
Nik2006
2006-08-07 16:03
2007.06.03
определение существования определенного метода в классе?


11-1157643265
mdw
2006-09-07 19:34
2007.06.03
Новости сайта kolnmck.ru


15-1178569913
Германн
2007-05-08 00:31
2007.06.03
С жиру бесятся (Каждый сходит с ума по своему :)


15-1178728994
Виталий______
2007-05-09 20:43
2007.06.03
Вопрос по Oracle Forms Builder