comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: How to extend packages
Date: Sat, 07 Jun 2008 17:04:57 +0100
Date: 2008-06-07T17:04:57+01:00	[thread overview]
Message-ID: <m2skvp5iza.fsf@mac.com> (raw)
In-Reply-To: 484977AB.20002@gmail.com

S�bastien Morand <seb.morand@gmail.com> 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).



  parent reply	other threads:[~2008-06-07 16:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 17:00 How to extend packages snoopysalive
2008-06-06 17:24 ` witmer
2008-06-06 17:45 ` Sébastien Morand
2008-06-07 14:21   ` Stephen Leake
2008-06-07 16:04   ` Simon Wright [this message]
2008-06-07 21:50     ` snoopysalive
2008-06-08 11:09       ` Simon Wright
2008-06-09 22:38         ` snoopysalive
2008-06-10  5:40           ` Simon Wright
2008-06-14  8:45             ` snoopysalive
2008-06-06 18:16 ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox