Article View: borland.public.delphi.language.objectpascal
Article #126Re: A simple quetion
From: Yoerdes
Date: Tue, 27 Jan 2004 00:14
Date: Tue, 27 Jan 2004 00:14
24 lines
2289 bytes
2289 bytes
Yoerdes wrote: > H. Debs wrote: >> No need, just try it yourself. Assign the handler from the var, but >> don't assign anything to the var first (don't create the var's >> object). I know it is hard to believe, I didn't believe it either, but >> just try it! And it is perfectly proper behavior from Delphi's point >> of view too, apparently. > > If I knew which var and handler you're talking about, I might try > something, that I hadn't already tried before. OK, I found what you mean in FEZA's code: var FormManager: TFormManager; It works indeed, but I don't like it. In debug mode FormManager is nil, as it should be, when you assign the procedure. Here I'd expect an AV. That it works anyway, seems a little shady to me, and I wouldn't want to rely on it. -- Yoerdes
Technical Details
Message-ID:
<4015ad4b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4012ed90@newsgroups.borland.com> <4012eec6@newsgroups.borland.com> <4012f408@newsgroups.borland.com> <4012fa59$1@newsgroups.borland.com> <4012fe55@newsgroups.borland.com> <40130a29$1@newsgroups.borland.com> <4013115d@newsgroups.borland.com> <40131b3d$1@newsgroups.borland.com> <40132590@newsgroups.borland.com> <40132aa3$1@newsgroups.borland.com> <40144907@newsgroups.borland.com> <40145056$1@newsgroups.borland.com> <40145d63$1@newsgroups.borland.com> <401462b8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,12a8917f3c14f275 X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2004-01-26 16:40:02 PST Date: Mon, 26 Jan 2004 16:14:07 -0800 From: Yoerdes <yoerdes@spambin.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: A simple quetion References: <4012ed90@newsgroups.borland.com> <4012eec6@newsgroups.borland.com> <4012f408@newsgroups.borland.com> <4012fa59$1@newsgroups.borland.com> <4012fe55@newsgroups.borland.com> <40130a29$1@newsgroups.borland.com> <4013115d@newsgroups.borland.com> <40131b3d$1@newsgroups.borland.com> <40132590@newsgroups.borland.com> <40132aa3$1@newsgroups.borland.com> <40144907@newsgroups.borland.com> <40145056$1@newsgroups.borland.com> <40145d63$1@newsgroups.borland.com> <401462b8$1@newsgroups.borland.com> In-Reply-To: <401462b8$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.117.93.249 Message-ID: <4015ad4b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075162443 67.117.93.249 (26 Jan 2004 16:14:03 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail