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 X-Google-Thread: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: for S'Image use Func?? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1ojboulapml8w$.1w5gfpk45kh72.dlg@40tude.net> Date: Fri, 7 May 2010 09:28:06 +0200 Message-ID: NNTP-Posting-Date: 07 May 2010 09:28:04 CEST NNTP-Posting-Host: f70af2de.newsspool1.arcor-online.net X-Trace: DXC=4Fo<]lROoR1<`=YMgDjhg2ZYUBk^8eT;9[6LHn;2LCV>7enW;^6ZC`4IXm65S@:3>?T15]fIhB:j; X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:11355 Date: 2010-05-07T09:28:04+02:00 List-Id: On Thu, 6 May 2010 21:20:46 -0500, Randy Brukardt wrote: > "Dmitry A. Kazakov" wrote in message > news:1ojboulapml8w$.1w5gfpk45kh72.dlg@40tude.net... >> On Thu, 06 May 2010 16:22:03 -0400, Robert A Duff wrote: >> >>> Warren writes: >>> >>>> I agree that it is indeed clumsier. It's just that >>>> I tend to use it a lot in debug output, rather than >>>> chasing down the package prefix for the To_String() >>>> function. I know I can always get away with: >>>> >>>> Put_Line("The value V=" & T'Image(V)); >>> >>> I don't understand that. You need to chase down the package >>> in which T is declared, which is the same package in which >>> To_String (or better, Image) is declared. >> >> I always declare I/O/formatting stuff in a child package. So, T'Image has >> some minor advantages. (The argument would really work if it were V'Image >> or V.Image) > > Except that you can't specify an attribute of a type after it is frozen. So > if you could specify T'Image, you couldn't define the Image function that > you specified in a child package. Thus Bob is right: the type and the > function has to be in the same package. Right. Primitive operations are somewhat incompatible with modularity (and multiple dispatch as well). There must be something wrong with that, though I cannot figure out what. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de