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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,2a9db729f8141a43,start X-Google-Attributes: gid103376,public From: pascal.obry@der.edfgdf.fr (Pascal Obry) Subject: Question about constants initialisation Date: 1996/04/24 Message-ID: <4ll9vt$h70@cf01>#1/1 X-Deja-AN: 151174924 organization: Direction des Etudes et Recherches EDF newsgroups: comp.lang.ada Date: 1996-04-24T00:00:00+00:00 List-Id: I was wondering how to initialize the constant Null_Azerty in the following piece of code : ------------------------------------- with Ada.Strings.Unbounded; package Ess is use Ada.Strings.Unbounded; type Azerty is private; Null_Azerty : constant Azerty; private type Azerty is new Unbounded_String; Null_Azerty : constant Azerty := ... ; -- I tried this with GNAT and it doesn't works ? -- Is it a bug ? --Null_Azerty : constant Azerty := Azerty (To_Unbounded_String ("")); --NA : Unbounded_String := Null_Unbounded_String; --Null_Azerty : constant Azerty := NA; end Ess; ----------------------------------- If it's a GNAT bug let me know and I'll report it. Thanks for your help, Pascal. --|------------------------------------------------------------ --| Pascal Obry Team-Ada Member | --| | --| EDF-DER-IPN-SID- Ing�nierie des Syst�mes d'Informations | --| | --| Bureau G1-010 e-mail: pascal.obry@der.edfgdf.fr | --| 1 Av G�n�ral de Gaulle voice : +33-1-47.65.50.91 | --| 92141 Clamart CEDEX fax : +33-1-47.65.50.07 | --| FRANCE | --|------------------------------------------------------------ --| --| http://ourworld.compuserve.com/homepages/pascal_obry --| --| "The best way to travel is by means of imagination"