comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Two 'Output questions
Date: Fri, 01 Jul 2005 11:09:13 +0200
Date: 2005-07-01T11:09:13+02:00	[thread overview]
Message-ID: <42C50839.6020302@mailinator.com> (raw)
In-Reply-To: <gYCdnSO97OH431nfRVn-og@megapath.net>

Randy Brukardt wrote:
> "Alex R. Mosteo" <devnull@mailinator.com> wrote in message
> news:42C43B48.1040802@mailinator.com...
> 
>>Hello everybody,
>>
>>a) Is there any guarantee that 'Output is implemented like...?
>>
>>    1. Write bounds/Tag
>>    2. Call to 'Write
> 
> 
> No, because it might be inherited (untagged types only) or redefined. But if
> it is not, the default implementation is described by 13.13.2(25-27), and it
> says the same as the above.

Shame on me, I managed to read two times that section skipping the 
clarification in parentheses.

>>b) Is there any way to call the default 'Output attribute once you have
>>redefined it? The reason for this is that I have a variant record in
>>which just one of the variations needs special treatment... I have ideas
>>for workarounds but I'm now just curious.
> 
> 
> If the type is derived, you can call the operation of the parent type in the
> obvious way. You might be able to rename the original operation before the
> redefinition (the "squirreling away" type of rename, which certainly works
> for overriding). But otherwise it is gone.

As I thought.

Thanks for all the answers.



  reply	other threads:[~2005-07-01  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 18:34 Two 'Output questions Alex R. Mosteo
2005-06-30 18:58 ` Matthew Heaney
2005-06-30 19:08 ` Randy Brukardt
2005-07-01  9:09   ` Alex R. Mosteo [this message]
2005-07-01  5:13 ` Simon Wright
replies disabled

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