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.6 required=5.0 tests=BAYES_05,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!corton!inria!enst!meduse!rosen From: rosen@meduse.enst.fr (Jean Pierre Rosen) Newsgroups: comp.lang.ada Subject: Re: integer'image Summary: 'IMAGE or PUT? Message-ID: <52@meduse.enst.fr> Date: 19 Jan 91 10:51:15 GMT References: <2563@sparko.gwu.edu> Organization: Telecom-Paris, Paris France List-Id: Answer to your concern is simple: 'IMAGE is not intended for output. As you point out, PUT is very convenient, EVEN for converting integers to strings, thanks to the nice PUT to string. Using 'IMAGE has other drawbacks: if you have a bounded line length, PUT(INTEGER'IMAGE(X)) will split the number in two accross line boundary, making it impossible to read later on, while PUT(X) will issue a new-line correctly. What is the advantage of using 'IMAGE? it "saves" one instantiation. I don't see any advantage in "saving" that kind of instantiations. It is just a bad trick that people use to often. To summerize: if you want to drive a screw with a hammer, don't complain the hammer's head is too large: use the right tool.