Master !help var f1 : TForm begin if f1 = nil then showmessage('nil') // why not show ? f1 = nil ; if f1 = nil then showmessage('nil') // showed
f1.free ; // no exception , why? end
Master , help 2 :各位OO高手在写程序的时候,定义类是从Tobject 继承 还是直接是Class 这两个有什么区别??还有, 上面的我的问题,有空解释一下, 谢谢!!
help var f1 : TForm begin if f1 = nil then showmessage('nil') // why not show ?(因为他本来f1!=nil的嘛) f1 = nil ; if f1 = nil then showmessage('nil') // showed(你都付nil值给它,他能不show嘛)
f1.free ; // no exception , why?(正常) end
Master , help 2 :各位OO高手在写程序的时候,定义类是从Tobject 继承 还是直接是Class 这两个有什么区别?? ---------------------------- 哈哈,按照国情出发,Object是top层。好像没用Class这个类吧?
个人认为,做win32程序还是D7好用。D2005中增加了C#
在delphi里面你写不写tboject都是一个样,类从tobject继承
是吗? 我看代码是不一样啊 Tobject = class ... 有这样定义的 :Txxxx = class 也有这样定义的: Txxxx = class(Tobject) 两个区别在那,如果一样那还要TOBJECT干吗? 或者,为什么有的直接继承自CLASS 而有的从TOBJECT来?
目前用不上,继续用D7的
如果D2006做得好的,会改用D2006的
var f1 : TForm
begin
if f1 = nil then showmessage('nil') // why not show ?
f1 = nil ;
if f1 = nil then showmessage('nil') // showed
f1.free ; // no exception , why?
end
var f1 : TForm
begin
if f1 = nil then showmessage('nil') // why not show ?(因为他本来f1!=nil的嘛)
f1 = nil ;
if f1 = nil then showmessage('nil') // showed(你都付nil值给它,他能不show嘛)
f1.free ; // no exception , why?(正常)
end
----------------------------
哈哈,按照国情出发,Object是top层。好像没用Class这个类吧?
也有这样定义的: Txxxx = class(Tobject) 两个区别在那,如果一样那还要TOBJECT干吗? 或者,为什么有的直接继承自CLASS 而有的从TOBJECT来?
INDY10
ASP.NET
ECOII
重构
StarTeam
这段时间在使用Delphi 2005,并写一些WIN32程序,很不错啊,我觉得并不亚于Delphi 7...