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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,789720372441e329 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What exactly is a 'record' in Ada 95? Date: Wed, 8 Sep 2004 20:22:01 +0200 Organization: cbb-software GmbH Message-ID: <1akppivjgr02c$.c1hh11ltc4lm.dlg@40tude.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de AP94+zaB78Kz6ngYsshZjQj1b/MbSab/GYg2VvAsaQSfuHmt0= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:3503 Date: 2004-09-08T20:22:01+02:00 List-Id: On Wed, 08 Sep 2004 14:27:32 +0200, matthias_k wrote: > ... Is 'record' the only type modifier? It depends on what you count under type modifiers. Very roughly Ada's "type modifiers": abstract - abstract type = it has no instances (values), "interface" access - pointer aliased - values can be referenced (can get a pointer to) all - target values can be in any storage pool array - true array class - class-wide type (has polymorphic values) delta / digits - used for real numbers to specify precision in / in out / out - standard subtypes of subroutine parameters limited - type which values cannot be copied mod - used with modular numbers new - a type clone new...with - a type extension null record - has no members, empty record private - a type which implementation is hidden protected - a type which values are concurrently used in a safe way range - used with numeric types to specify values range record - has members, but not protected tagged - a class member type (see class above), an extensible type task - values are active objects, "threads" -- Regards, Dmitry Kazakov www.dmitry-kazakov.de