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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3c22fe6651f1bf7 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Leading zeros with Int_IO.Put()? Or another package? Date: 1996/11/07 Message-ID: #1/1 X-Deja-AN: 195128676 references: <01bbcb50$df9cd480$b259c5c1@cetus> <55shs8$n1f@newsbf02.news.aol.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-11-07T00:00:00+00:00 List-Id: John Herro says "Whether this way of forcing leading zeros is "better" is certainly debatable. All I can say for certain is that it's fewer lines." That of course is NOT a criterion (and you don't say it is :-) This is a place where CLEARLY there is a missing abstraction (Put with leading zeros), and it seems obvious that you fix this in the way that you always do abstraction extension, you create an appropriate abstraction and use it. If it is useful enough, hopefully it gets to be widely available. Note that if you do want to construct on the fly, a much clearer way is to use the string routines from the string packages, which have padding capabilities.