comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com
Subject: Re: Access to procedures
Date: 1999/06/26
Date: 1999-06-26T00:00:00+00:00	[thread overview]
Message-ID: <7l34od$3b0@lotho.delphi.com> (raw)
In-Reply-To: 3774FAC2.39EEB49E@Maths.UniNe.CH

>>   procedure Do_Unzip is
>>       Feedback1 : feedback_handlers.My_feedback;
>> ....
>>           whatever.Extract(zi, Argument(i), method, Feedback1 );
>In that precise context, I want to avoid making this
>small unzip library depend even on the _existence_
>of all that feedbacks because an intended
>usage is a complete "invisible" unpacking, allowing
>programs to load data from a zipped one.
  Why not make the feedback parameter to Extract have a default
expression?  The default tagged object, defined in the package
defining Extract, can have no-op's for its Proc.  Then if
someone doesn't use it, or doesn't even know it exists, fine.
             whatever.Extract(zi, Argument(i), method);

>The "unrestricted_access" way seems much more simple,
>though - it seems - only provided by GNAT presently.
  The access restrictions, as previously pointed out, are there
for a reason.  IMHO, if you use "unrestricted_access", you are
living dangerously and creating a potential trap for future,
less careful, users of your Extract package.  Not to mention it
becomes non-standard Ada, tied to one particular compiler.




  parent reply	other threads:[~1999-06-26  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-25  0:00 Access to procedures Gautier
1999-06-25  0:00 ` David Botton
1999-06-25  0:00 ` Ted Dennison
1999-06-25  0:00 ` Ehud Lamm
1999-06-25  0:00 ` David Botton
1999-06-25  0:00 ` tmoran
1999-06-26  0:00   ` Gautier
1999-06-26  0:00     ` Brian Rogoff
1999-06-26  0:00     ` tmoran [this message]
1999-06-27  0:00       ` David Botton
1999-06-27  0:00         ` Brian Rogoff
1999-06-27  0:00           ` tmoran
1999-06-28  0:00             ` Gautier
1999-06-26  0:00 ` David C. Hoos, Sr.
replies disabled

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