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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.unit0.net!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf04.am4!fx32.fr7.POSTED!not-for-mail Message-ID: From: Mike H Reply-To: Mike Hopkins Newsgroups: comp.lang.ada Subject: Ambiguous expressions - Help! MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii User-Agent: Turnpike/6.07-M (<889$+zdU77fNg5didK8NqJs1aI>) NNTP-Posting-Host: 83.104.138.185 X-Complaints-To: abuse@demon.net X-Trace: 1380044372 83.104.138.185 (Tue, 24 Sep 2013 17:39:32 UTC) NNTP-Posting-Date: Tue, 24 Sep 2013 17:39:32 UTC Date: Tue, 24 Sep 2013 18:38:34 +0100 X-Received-Bytes: 1520 X-Original-Bytes: 1873 Xref: number.nntp.dca.giganews.com comp.lang.ada:183438 Date: 2013-09-24T18:38:34+01:00 List-Id: package Foo1 is type grid_index_type is new integer range 0..80; type grid_type is array (grid_index_type range <>) of character; subtype Vector_type is grid_type (0 .. 8); ... etc. with Foo1; package Foo2 is procedure Put_line (Item : in Foo1.Vector_type); procedure Put_line (Item : in string); ... etc. with Foo1; use Foo1; with Foo2; procedure Foo3 is Foo_thing : Vector_type; begin ... etc. Foo2.Put_line (Foo_thing); ... etc. Foo2.Put_line ("Something else"); ... etc. end Foo3; Compilation of Foo3 raises error messages of the form "ambiguous expression (cannot resolve "Put_line") I find it hard to believe that the compiler cannot distinguish between a string and an array of characters. What am I doing wrong? -- Mike Swim? Naturally at Severn Vale