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,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!56g2000hsm.googlegroups.com!not-for-mail From: "snoopysalive@googlemail.com" Newsgroups: comp.lang.ada Subject: How to extend packages Date: Fri, 6 Jun 2008 10:00:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8d94d993-4807-4356-b1ab-1f2bb3f96b98@56g2000hsm.googlegroups.com> NNTP-Posting-Host: 217.227.6.192 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1212771602 10283 127.0.0.1 (6 Jun 2008 17:00:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 6 Jun 2008 17:00:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 56g2000hsm.googlegroups.com; posting-host=217.227.6.192; posting-account=b7G67QoAAABjwLRYV73fYo_8iKCvB0IZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; de-de) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:589 Date: 2008-06-06T10:00:02-07:00 List-Id: Hi, Ada-folks! I'd like to extend the GNAT.Regpat a little bit, so that it contains additional operations like Split (the same as in Perl or Ruby) or Join (dito). When speaking of "extending" I mean it in the sense of e.g. Java where extending a class means that the child class contains all the public or protected operations and attributes as the super class. Perhaps you know now, what I want to achieve. I want to have an extended "child" package of GNAT.Regpat. In the end it should have an own name like e.g. "Mine.Regex" and contain all operation etc. of its "super" package plus the operations I'll additionally implement. I've been trying for hours now, so I'm passing this question to you. How to extend package? Thanks, Matthias