* Why is not Stream_Access defined Ada.Streams ? @ 2010-05-07 1:02 Yannick Duchêne (Hibou57) 2010-05-07 2:24 ` Randy Brukardt 0 siblings, 1 reply; 2+ messages in thread From: Yannick Duchêne (Hibou57) @ 2010-05-07 1:02 UTC (permalink / raw) Hi all and Hi others as well, My dirty stuff of the day : why is Stream_Access not defined once a time in Ada.Streams and is instead defined elsewhere multiple times, like in Ada.Streams.Stream_IO, Ada.Text_IO.Text_Streams, Ada.Wide_Text_IO.Text_Streams and Ada.Wide_Wide_Text_IO.Text_Streams ? Isn't it funny design ? -- No-no, this isn't an oops ...or I hope (TM) - Don't blame me... I'm just not lucky ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Why is not Stream_Access defined Ada.Streams ? 2010-05-07 1:02 Why is not Stream_Access defined Ada.Streams ? Yannick Duchêne (Hibou57) @ 2010-05-07 2:24 ` Randy Brukardt 0 siblings, 0 replies; 2+ messages in thread From: Randy Brukardt @ 2010-05-07 2:24 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 950 bytes --] "Yannick Duch�ne (Hibou57)" <yannick_duchene@yahoo.fr> wrote in message news:op.vca852lexmjfy8@garhos... > Hi all and Hi others as well, > > My dirty stuff of the day : why is Stream_Access not defined once a time > in Ada.Streams and is instead defined elsewhere multiple times, like in > Ada.Streams.Stream_IO, Ada.Text_IO.Text_Streams, > Ada.Wide_Text_IO.Text_Streams and Ada.Wide_Wide_Text_IO.Text_Streams ? > > Isn't it funny design ? Ada 95 didn't have anonymous access returns, so a named type had to be defined. I suspect that there was no intent that it be used for anything other than defining the result of these functions -- and there was no intent that that result be stored: just directly dereferenced and passed to a stream attribute. If we were writing it today, I'm pretty sure that no named type would be used at all. But making a change like that now would be incompatible. Randy. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-07 2:24 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-05-07 1:02 Why is not Stream_Access defined Ada.Streams ? Yannick Duchêne (Hibou57) 2010-05-07 2:24 ` Randy Brukardt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox