comp.lang.ada
 help / color / mirror / Atom feed
From: "Pascal Obry" <p.obry@der.edf.fr>
Subject: Re: Access to strings and string subtypes?
Date: 2000/03/17
Date: 2000-03-17T11:26:32+00:00	[thread overview]
Message-ID: <8at4p8$51r$1@clnews.edf.fr> (raw)
In-Reply-To: 38d20611.156204380@news.rrds.co.uk

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]


Steve Folly <steve.folly@rdel.co.uk> a �crit dans le message :
38d20611.156204380@news.rrds.co.uk...

> As I haven't got a copy of Gnat then, (out firewall prevents us
downloading
> unauthorised software), and you have, could you possibly tell me what Gnat
> thought of the particular piece of code I posted?

Compiling: test.ads (source file time stamp: 2000-03-17 11:18:34)

     8.    A : aliased Name;
           |
        >>> warning: aliased object has explicit bounds
        >>> warning: declare without bounds (and with explicit
initialization)
        >>> warning: for use with unconstrained access

     9.    C : aliased String (1..10);
           |
        >>> warning: aliased object has explicit bounds
        >>> warning: declare without bounds (and with explicit
initialization)
        >>> warning: for use with unconstrained access

    12.    E : Ref := A'Access; -- Does not statically match designated
subtype ???
                      |
        >>> object subtype must statically match designated subtype

    13.    F : Ref := C'Access; -- Does not statically match designated
subtype ???
                      |
        >>> object subtype must statically match designated subtype

 17 lines: 2 errors, 6 warnings
gnatmake: "test.ads" compilation error


> And a solution to the problem?
>

See above :)

Pascal.







  reply	other threads:[~2000-03-17  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-16  0:00 Access to strings and string subtypes? Steve Folly
2000-03-16  0:00 ` Ehud Lamm
2000-03-16  0:00   ` Steve Folly
2000-03-17  0:00     ` Ehud Lamm
2000-03-17  0:00       ` Larry Kilgallen
2000-03-17  0:00         ` Robert Dewar
2000-03-17  0:00           ` Robert A Duff
2000-03-18  0:00             ` Robert Dewar
2000-03-20  0:00               ` Tucker Taft
2000-03-17  0:00       ` Steve Folly
2000-03-17  0:00         ` Pascal Obry [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-03-17  0:00 Christoph Grein
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox