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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,887e603b44eb2706 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: null exclusion and generics Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1161262319.24061.19.camel@localhost.localdomain> Date: Thu, 19 Oct 2006 15:06:35 +0200 Message-ID: <1fzlvq64mofpu.hh36uqejgir2.dlg@40tude.net> NNTP-Posting-Date: 19 Oct 2006 15:06:35 CEST NNTP-Posting-Host: b187817a.newsspool3.arcor-online.net X-Trace: DXC=fLRfFRgW58km7>ihJR;B_cMcF=Q^Z^V3h4Fo<]lROoRagUcjd<3m<;bOVKJ1@MKl2n[6LHn;2LCVn7enW;^6ZC`dF0oL On Thu, 19 Oct 2006 14:51:59 +0200, Georg Bauhaus wrote: > If a generic formal type is private, I can supply a > null excluding subtype for the type parameter. > A generic formal private type means assignment is possible. > Declarations of objects of the null excluding > actual inside the generic need explicit initialization, > though. > > generic > type T is private; > procedure Nop(source: in T); Is it really so? I would expect them to require: generic type T (<>) is private; procedure Nop(source: in T); for "not null" is a constraint. What would a language layer say? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de