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,f25e853f410d55da X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Dynamicly declaring arrays (was: Time to join the fold?) Date: 1999/02/01 Message-ID: <794gg7$ib$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 439369096 References: <78abg4$cnc$1@its.hooked.net> <78i8s4$hth$1@its.hooked.net> <78iq2m$br9$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Feb 01 15:16:31 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-02-01T00:00:00+00:00 List-Id: In article , Matthew Heaney wrote: > dennison@telepath.com writes: > > > In a severe jam a declare block can be used to get a localized > > constant string, or one of the ada.strings packages can be used. > > Rather odd to describe using a declare block to declare a string object > only in a "severe jam," since this is the normal, intended usage! > True, that is what they are there for. But my style is to avoid declare blocks if I can help it. Typicaly I'd try to break off a proper subroutine first. When I do use declare blocks, its usually just to provide a localized exception handler (and in that case of course the "declare" isn't nessecary). I'm not entirely sure I can defend this aversion to declare blocks in a rational way, so if anyone has a rationale as to why its perfecly acceptable to have declare blocks liberally sprinkled throught their code, I'm all ears. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own