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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada.Real_Time.Time_Last Date: Mon, 20 Nov 2017 06:57:59 +0100 Organization: Adalog Message-ID: References: <591a9389-a4b8-43fa-b963-0ebb9e488be1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 20 Nov 2017 05:57:57 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="497fc11935e7b7a02722d93e1b28f694"; logging-data="4896"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SVIQADxcrlTYwcnhg4dmp" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 In-Reply-To: Content-Language: fr X-Mozilla-News-Host: news://reader80.eternal-september.org Cancel-Lock: sha1:KBwsPVZH/aTkI7aRzJcNaG/OanA= Xref: feeder.eternal-september.org comp.lang.ada:49011 Date: 2017-11-20T06:57:59+01:00 List-Id: Le 18/11/2017 à 23:20, Robert A Duff a écrit : > If Interrupt_Id is an enumeration type (not true for GNAT), you don't > want to hide the names of the interrupts from clients. If there's a > Gizmo_Device_Interrupt, then clients want to attach handlers to that by > name. Actually, they are not hidden: Put (T'Image (T'First)); Or if you want to call a procedure P with the second value of T: P (T'val (1)) -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr