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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx14.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:31.0) Gecko/20100101 Thunderbird/31.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> <1wjmcbk375lzk.6o7dpqcp3va3.dlg@40tude.net> <11241mc0j3ewn.14ahwtra3l1i8.dlg@40tude.net> <10o6qo98dwzjs$.rdpzvq7w1lep.dlg@40tude.net> <1y4292c8reke$.10t8zilxfxjqf.dlg@40tude.net> <98un5d2zp91p$.cbmroy0r1uqu.dlg@40tude.net> <%fW5v.233114$ZP3.133046@fx20.iad> <1m2e01a5935at$.7808izv5mhqk.dlg@40tude.net> In-Reply-To: <1m2e01a5935at$.7808izv5mhqk.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Thu, 24 Apr 2014 15:20:53 UTC Organization: TeraNews.com Date: Thu, 24 Apr 2014 09:20:52 -0600 X-Received-Bytes: 2740 X-Received-Body-CRC: 412567329 Xref: news.eternal-september.org comp.lang.ada:19570 Date: 2014-04-24T09:20:52-06:00 List-Id: On 24-Apr-14 01:30, Dmitry A. Kazakov wrote: > On Wed, 23 Apr 2014 15:28:27 -0600, Shark8 wrote: > >> On 23-Apr-14 14:00, Dmitry A. Kazakov wrote: >>> On Wed, 23 Apr 2014 13:43:19 -0600, Shark8 wrote: >>> >>>> On 23-Apr-14 01:45, Dmitry A. Kazakov wrote: >>>>> In the case of files there already is such stick object: /dev/null. >>>> >>>> I think there's a problem with that assertion >>>>> C:\Programming\Projects\SiennaSCL\src>cd /dev/null >>>>> The system cannot find the path specified. >>>> >>>> See? >>> >>> Path /= File >> >> Not much different: > > Decisively different. > > It would be trivial to implement Null_File_Type, provided there were > Root_File_Type. Alas, non-tagged File_Type is Ada 83 heritage. > > If you don't mind being GNAT-locked, you can implement GNAT-specific > Null_File of File_Type on top of GNAT implementation. > > For stream I/O everything is here. Root_Stream_Type is tagged. > > type Null_Stream_Type is new Root_Stream_Type with null record; > overriding procedure Read ... > overriding procedure Write ... > > Null_Stream : Null_Stream_Type; > You're completely missing the point -- it wasn't about a null-file, it was about assuming all computers are *nix.