comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: Re: package body
Date: Tue, 7 Oct 2014 13:05:29 -0700 (PDT)
Date: 2014-10-07T13:05:29-07:00	[thread overview]
Message-ID: <5d1d4904-28dc-478e-8ea4-161f2804adc7@googlegroups.com> (raw)
In-Reply-To: <7c811e73-61e2-4c89-abb3-749d31461758@googlegroups.com>

On Tuesday, October 7, 2014 3:58:36 PM UTC-4, Stribor40 wrote:
> 
> Is there anything wrong with doing g it this way and if there is better way to do this?

The preferred way (open to interpretation) is to remove the object entirely, expose the type in the spec, have the client declare it as necessary, and pass it as an 'in out' argument to the functions.  Or, even better, wrap it up in a private type and so forth.

-sb


  reply	other threads:[~2014-10-07 20:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-07 19:58 package body Stribor40
2014-10-07 20:05 ` sbelmont700 [this message]
2014-10-07 20:05 ` Simon Wright
2014-10-07 20:17 ` Jeffrey Carter
replies disabled

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