From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,5558619e172f782a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-16 02:10:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Null record Date: Sat, 16 Aug 2003 09:10:00 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3f3db971_1@news.tm.net.my> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1061025000 3987 129.241.83.78 (16 Aug 2003 09:10:00 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sat, 16 Aug 2003 09:10:00 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:41556 Date: 2003-08-16T09:10:00+00:00 List-Id: Adrian Hoe wrote: > Hi, > > Just a silly question. > > A null record can be implemented as follow: > > Method 1: > > type Blank is new Some_Record with null record; > > Method 2: > > type Blank is new Some_Record with > record > null; > end record; > > > Which is the most popular form and why? I assume personal preference > influences the choice. I think Method 1 was made particularily for this usage. I would say Method 1 as Method 2 looks like incomplete code if you consider: procedure Do_Something_Callback (Object : T) is begin null; end Do_Something_Callback; which could be automatically generated from a spec file. -- �I think fish is nice, but then I think that rain is wet. So who am I to judge.� - The Hitch Hiker's Guide to the Galaxy (radioplay)