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-7-bit X-Google-Thread: 103376,fc9d2f32aa4c961b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-16 10:10:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!btnet-peer1!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: Subject: Re: Help: Tagged Types MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 16 Nov 2001 18:02:53 -0000 NNTP-Posting-Host: 62.252.148.91 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1005933939 62.252.148.91 (Fri, 16 Nov 2001 18:05:39 GMT) NNTP-Posting-Date: Fri, 16 Nov 2001 18:05:39 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:16633 Date: 2001-11-16T18:02:53+00:00 List-Id: > > Hi, > > > > If we have a decendant of type gwindows.windows.window_type, gl_window_type, > > and override it's create procedure, does the following call the create > > procedure for gwindows.windows.window_type? > > No, it dispatches. > > You want: > > gwindows.windows.create (gwindows.windows.window_type(window)); Ok. > Critique of GWindows: > > In general, it's best if "create" functions are _not_ primitive > operations of the type, for precisely this reason. The derived types > should have a different "create" function, because they will normally > have additional parameters, and the compiler should help the user call > the correct one. > > One way to do this is to put the Create functions in a local nested > package. There were two options: override create proper or the event on_create. The reason for using create was simple, I forgot that on_create could be used for this. I'm going to use on_create instead, it's simpler and closer to what I intend. Thanks, Chris