comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: Type Transcriptions
Date: Tue, 22 Apr 2014 00:06:03 -0600
Date: 2014-04-22T00:06:03-06:00	[thread overview]
Message-ID: <rFn5v.119476$Va6.79419@fx21.iad> (raw)
In-Reply-To: <lj3sbj$3tv$1@dont-email.me>

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

On 21-Apr-14 13:42, Jeffrey Carter wrote:
> On 04/21/2014 11:51 AM, Shark8 wrote:
>>
>> I suppose the better way to phrase it is:
>> "Is it better to strictly stick to the spec, letting generic
>> instantiation take
>> care of these 'extra-typal' parameters, *OR* doing things the natural
>> Ada way,
>> and worrying about 'fixing-up' things in, say, 'Input and 'Output
>> operations."
>
> My vote is for the Ada way, as long as the functionality is correct.
> Making it clear, easy to read and understand, and correct are the
> important things.

To be fair, going the generic-package route isn't necessarily /not/ the 
Ada way -- it's just not, IIUC, all that common. There's an interesting 
Technical Report [attached] on how generic-packages and records share a 
/lot/ of underlying ideas that are identical.

This would, however require some sort of mechanism to keep sessions 
associated with the Security_Parameters; this sort of situation is where 
something like package-pointers would be an interesting solution -- 
IIRC, Randy mentioned the idea as one of them as AI ideas that had been 
rejected.

[-- Attachment #2: www.cs.dartmouth.edu/reports/TR86-104.pdf --]
[-- Type: application/pdf, Size: 763193 bytes --]

  reply	other threads:[~2014-04-22  6:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-21  7:21 Type Transcriptions Shark8
2014-04-21 16:54 ` Brad Moore
2014-04-21 18:11   ` Yannick Duchêne (Hibou57)
2014-04-21 18:51     ` Shark8
2014-04-21 19:42       ` Jeffrey Carter
2014-04-22  6:06         ` Shark8 [this message]
2014-04-21 20:33       ` Ludovic Brenta
2014-04-21 22:46         ` Adam Beneschan
2014-04-22  8:57         ` Shark8
replies disabled

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