From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,af960bc705aaf51b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-03 11:36:25 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Complexity of protected objects Date: 3 Mar 2002 11:36:25 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0203031136.5a77597a@posting.google.com> References: <3C7A75F2.30503@worldnet.att.net> <3c7e7c60.8192226@news.cis.dfn.de> <3C7FBD74.D434411E@boeing.com> <5ee5b646.0203021706.75f53f62@posting.google.com> <3C81C852.395A160A@acm.org> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1015184185 15130 127.0.0.1 (3 Mar 2002 19:36:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 3 Mar 2002 19:36:25 GMT Xref: archiver1.google.com comp.lang.ada:20731 Date: 2002-03-03T19:36:25+00:00 List-Id: Jeffrey Carter wrote in message news:<3C81C852.395A160A@acm.org>... > but as the start of the discussion > referred to calling Ada.Text_IO operations from protected > operations, I > didn't think the additional qualification was necessary. But it did not do so! The first message in this thread simply talked about reading and writing files, without any hint of how it should be done. The bottom line here is that if you want to do input output from a protected object, you need to check with the details of the implementation to see what will happen. It might be just fine to use Text_IO (it would be in GNAT), or it might be fine to use an interfaced C library routine, or perhaps there is something specifically intended for this purpose. Most certainly you are in implementation dependent territory here, but that's not necessarily terrible at all.