comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada sources MIME type
Date: Wed, 30 Mar 2011 14:49:12 -0500
Date: 2011-03-30T14:49:12-05:00	[thread overview]
Message-ID: <in01fr$o1s$1@munin.nbi.dk> (raw)
In-Reply-To: 4d93797a$0$6878$9b4e6d93@newsspool2.arcor-online.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]


"Georg Bauhaus" <rm.dash-bauhaus@futureapps.de> 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.





      reply	other threads:[~2011-03-30 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 10:01 Ada sources MIME type Yannick Duchêne (Hibou57)
2011-03-30 17:40 ` Yannick Duchêne (Hibou57)
2011-03-30 18:42   ` Georg Bauhaus
2011-03-30 19:49     ` Randy Brukardt [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox