🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.ada
Article #41

Re: clause with

#41
From: Frédéric Praca
Date: Wed, 03 Oct 2012 12:03
19 lines
1985 bytes
On Wed, 03 Oct 2012 04:53:37 -0700, philippe.torgue wrote:

> en fait je voudrais que le paquetage montype utilise une valeur définie
> dans le programme principal.
Alors il faut la passer en paramètre des fonctions de montype.

> Mais qu'est-ce qu'un programme principal en Ada ?
Une procédure définie hors d'un package.

> Dois-je forcément passer par la généricité pour qu'un module soit
> paramétrable ?
Si c'est le module entier qui doit être paramétrable, oui, il faut faire 
de la généricité (quoique). Si c'est seulement un type de ton package, il 
y a d'autres choses comme passer par les discriminants pour les 
enregistrements (type record)...

Mais il nous faut plus d'explications.

Fred
Technical Details
Message-ID: <506c297c$0$1841$426a74cc@news.free.fr>
Path: arc1-ca.pugleaf.net!q11ni134138073wiw.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp2-1.free.fr!not-for-mail
References: <4d952fa8-552e-4b34-abac-84899bfbb381@googlegroups.com> <a66f186b-a6fe-469d-937a-f78bff569210@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107e1d,69c67130386736b0
X-Google-NewGroupId: yes
X-Google-Attributes: gid43d0c745c,domainid0,public,usenet
X-Google-Language: FRENCH,UTF8
Received: by 10.180.73.134 with SMTP id l6mr3657597wiv.1.1349265788207;
        Wed, 03 Oct 2012 05:03:08 -0700 (PDT)
Path: arc1-ca.pugleaf.net!q11ni134138073wiw.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp2-1.free.fr!not-for-mail
From: Frédéric Praca <frederic.praca@free.fr>
Subject: Re: clause with
Newsgroups: fr.comp.lang.ada
References: <4d952fa8-552e-4b34-abac-84899bfbb381@googlegroups.com>
 <a66f186b-a6fe-469d-937a-f78bff569210@googlegroups.com>
User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150
 git://git.gnome.org/pan2)
MIME-Version: 1.0
Date: 03 Oct 2012 12:03:08 GMT
Lines: 19
Message-ID: <506c297c$0$1841$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 03 Oct 2012 14:03:08 CEST
NNTP-Posting-Host: 79.174.200.226
X-Trace: 1349265788 news-2.free.fr 1841 79.174.200.226:56697
X-Complaints-To: abuse@proxad.net
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit