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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,92fea0e45d933ff4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada sources MIME type Date: Wed, 30 Mar 2011 14:49:12 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <4d93797a$0$6878$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1301514555 24636 69.95.181.76 (30 Mar 2011 19:49:15 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 30 Mar 2011 19:49:15 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news2.google.com comp.lang.ada:19584 Date: 2011-03-30T14:49:12-05:00 List-Id: "Georg Bauhaus" wrote in message news:4d93797a$0$6878$9b4e6d93@newsspool2.arcor-online.net... > On 30.03.11 19:40, Yannick Duch�ne (Hibou57) wrote: >> promote a "text/x-ada-spec" and an >> "text/x-ada-body" MIME types for Ada source files. > > Against. Though not against specifying file content's > type and encoding! > > Use extended attributes. Available in all file systems > and archives in current use. > > An Ada source file can contain multiple compilation units, > and pragmas; what do you suggest if a single file has a spec, > a body, a separate unit, and configuration pragmas, > i.e. a complete Ada program text? > > That's why I'm against text/x-ada-* A MIME type should > relate possible Ada content, not accidentals like a > correspondence between compilation units and files the > way a single compiler prefers. Not to mention what happens when the source file is a procedure or instance of a generic procedure or a procedure or task subunit. Janus/Ada calls all of those things "bodies" for the sake of it's file naming conventions, but I've also seen people and projects which given those their own extension ".PRC" or "ADP". Net effect is that there are as many ways to do this as there are projects; it doesn't make sense to encode any of them in stone. Randy.