comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado-Alves <amado.alves@gmail.com>
Subject: Re: Interface to aggregated type
Date: Mon, 6 Aug 2012 12:56:22 -0700 (PDT)
Date: 2012-08-06T12:56:22-07:00	[thread overview]
Message-ID: <65eb03bb-a8d9-4727-a2a1-c92d07a4445a@googlegroups.com> (raw)
In-Reply-To: <8e844311-f470-4382-8acc-ffe30aee1c18@googlegroups.com>

Don't duplicate. Not here. Not needed. Make distinct packages HTTP.Headers, HTTP.Request_Messages, etc. Top package HTTP may have common things e.g. a root type for messages, or may be empty; HTTP.Request_Messages uses (withens) HTTP.Headers; you can make a type T1 with public and private fields easily using type extension(maybe there are other ways):

   type T0 is tagged
      record
         <public fields>
      end record;

   type T1 is new T0 with private;
private
   type T1 is new T0 with
      record
         <private fields>
      end record;



      parent reply	other threads:[~2012-08-13  9:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 18:42 Interface to aggregated type ms
2012-08-06 19:43 ` Dmitry A. Kazakov
2012-08-06 20:28   ` ms
2012-08-06 19:56 ` Marius Amado-Alves [this message]
replies disabled

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