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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ccb8bd6b4c3162fd,start X-Google-Attributes: gid103376,public From: marcoschmidt@geocities.com (Marco Schmidt) Subject: Beginner's questions Date: 1999/05/02 Message-ID: <372da49c.12366381@news.rwth-aachen.de>#1/1 X-Deja-AN: 473241642 Content-Transfer-Encoding: 7bit Organization: - Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Reply-To: marcoschmidt@geocities.com Newsgroups: comp.lang.ada Date: 1999-05-02T00:00:00+00:00 List-Id: I have to write my first longer program in Ada and could resolve all questions except for those two using the reference manual. Maybe someone could help me here... I'm using GNAT 3.11p for NT. 1) I couldn't find out how to use bitwise operations "and" and "or" (which would be "and" / "or" in Pascal and "&" / "|" in C). Do I have to include a certain package? 2) I want to use a fixed-size array of constant strings to store some names which do not all have the same length, but no name is longer than 20 characters. My approach looks like this: type t_my_array is array(0..17) of String; names : constant t_my_array := ("string 1", "string 2", ..., "string 18"); The compiler doesn't like this (unconstrained element type). If I replace String with String(0..19), it is compiled, but a runtime error is raised. How should I do it? Thanks in advance, Marco