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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Mon, 10 May 2010 15:48:19 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <4be417b4$0$6992$9b4e6d93@newsspool4.arcor-online.net> Injection-Date: Mon, 10 May 2010 15:48:19 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="12878"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AlrmmpZtAoOFACjQSmyMTCyeRZo4vkRU=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:CAUu/BtWQy+jqnr8ELgB3fTkDD4= Xref: g2news2.google.com comp.lang.ada:11449 Date: 2010-05-10T15:48:19+00:00 List-Id: Robert A Duff expounded in news:wccpr17yeji.fsf@shell01.TheWorld.com: > And teaching beginners how to instantiate generics, > when there's a simple 'Image feature, is not a good idea. > > - Bob I know how to "instantiate generics". The problem is that they don't always do what I want. Add to that, the reluctance to add bloat when there are many types involved. My biggest gripe though is with it's handling of hexadecimal. In C, I can write: sprintf(buf,"%08lX",lngval); and get my 8 digit hex value, with leading zeros (if I want it). But with the Ada supplied generics, I have to remove the "16#" and "#" from the result. So that always has me thinking, "what were they thinking?" as well. It sometimes seems that I'm always having to wrap something that the Ada standard library gives me. Another thing that bugs me is that the Ada.Text_IO will not return a LF character (like getchar() in C). IMO, there needs to be a "modernized" Ada text I/O facility. IOW something like a thick binding for the C I/O facilities but designed in Ada terms - not C terms. I know there are different flavours of C bindings for this, but without recalling the specific issues involved, I've never been real keen about using them, except as a last resort. Warren