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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7178c15dc3019a0d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to extend packages Date: Sat, 07 Jun 2008 17:04:57 +0100 Organization: Pushface Message-ID: References: <8d94d993-4807-4356-b1ab-1f2bb3f96b98@56g2000hsm.googlegroups.com> <484977AB.20002@gmail.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1212854697 29923 62.49.19.209 (7 Jun 2008 16:04:57 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 7 Jun 2008 16:04:57 +0000 (UTC) Cancel-Lock: sha1:/UiYpC6JM6uYedTo3s1dcQo7cXo= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Xref: g2news1.google.com comp.lang.ada:599 Date: 2008-06-07T17:04:57+01:00 List-Id: S�bastien Morand writes: > with GNAT.Regpat; use GNAT.Regpat; This is not necessary; the parent's spec (including the private part) is directly visible within the child. Though I'm not sure what help that would be in future, since in 4.3.0 the spec is .. with System.Regpat; package GNAT.Regpat renames System.Regpat; > package GNAT.Regpat.Extended is > end GNAT.Regpat.Extended; But the only private type in Regpat is Pattern_Matcher. Is knowledge of Pattern_Matcher required in order to write OP's extensions? If so, OP will have to write a child (of System.Regpat, I think).