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-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn?= Persson Subject: Re: typed pipes Newsgroups: comp.lang.ada References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <_nMDh.34647$E02.13753@newsb.telia.net> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-ID: <2n5Eh.34802$E02.13594@newsb.telia.net> Date: Sun, 25 Feb 2007 01:11:26 GMT NNTP-Posting-Host: 83.251.159.188 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1172365886 83.251.159.188 (Sun, 25 Feb 2007 02:11:26 CET) NNTP-Posting-Date: Sun, 25 Feb 2007 02:11:26 CET Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:9511 Date: 2007-02-25T01:11:26+00:00 List-Id: Jacob Sparre Andersen wrote: > The first time I discussed it my suggestion was to use MIME types. I > am not sure that is the correct solution, but it should definitely be > on a higher level than just Ada.Sequential_IO (Character). Do we have > something better than MIME types to give a short, but reasonably > consistent description of a data stream? Yes, MIME types seems a lot better than trying to describe complex data types in detail. A MIME type is just a name for the file type, not a description, but that's enough. If the program can handle the file type then it already knows the structure and doesn't need a description, and if it's an unknown file type then the program won't know what to do with the file no matter how detailed the structure is described. MIME types can be stored as extended attributes in some file systems. I don't really know how feasible it would be to add them to pipes. -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu