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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.57.208.20.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: ASIS: Recognising type declarations from package Standard? Date: Sat, 02 Jun 2018 18:30:13 +0200 Organization: JSA Research & Innovation Message-ID: <87vab1p2wa.fsf@jacob-sparre.dk> References: <87d0xar4jv.fsf@jacob-sparre.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: franka.jacob-sparre.dk; posting-host="109.57.208.20.mobile.3.dk:109.57.208.20"; logging-data="30560"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:nWQ4vIKdag+QKuvSmJZO6giD9KE= Xref: reader02.eternal-september.org comp.lang.ada:52858 Date: 2018-06-02T18:30:13+02:00 List-Id: J-P. Rosen wrote: > Le 01/06/2018 à 15:59, Jacob Sparre Andersen a écrit : >> I'm working on an ASIS tool, where I want to treat subtypes of >> Standard.String. But how can I identify types declared in package >> Standard with ASIS? >> >> Using ASIS-4-GNAT, Asis.Text.Element_Image returns "" for an element >> representing Standard.String. - I can see that it is an unconstrained >> array type (like Standard.Wide_String), but nothing more than that. >> > ??? This should work... Search for "STANDARD" in the sources of > AdaControl, you'll find several places where it works. I must be doing something wrong, then. I'll take a look. Thanks! Jacob -- "The three principal virtues of a programmer are Laziness, Impatience, and Hubris" -- Larry Wall