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 X-Google-Thread: 103376,6cb2525ffbfe23ce X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Why both "with" and "use"? Date: 1999/02/19 Message-ID: <7ajsph$cra$1@platane.wanadoo.fr>#1/1 X-Deja-AN: 446073914 Content-Transfer-Encoding: 8bit References: <36C5B28C.F32C43A4@jps.net> <7acj53$1vu@news3.newsguy.com> <7af68r$52o$1@platane.wanadoo.fr> <7afue4$8ed$1@nnrp1.dejanews.com> <7ah3te$g6p$1@platane.wanadoo.fr> <7ai5br$6g3$1@nnrp1.dejanews.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Organization: Adalog Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-19T00:00:00+00:00 List-Id: robert_dewar@my-dejanews.com a �crit dans le message <7ai5br$6g3$1@nnrp1.dejanews.com>... >In article <7ah3te$g6p$1@platane.wanadoo.fr>, > "Jean-Pierre Rosen" wrote: >JPR's usage above takes 8 tokens, even assuming it is only >used once in a unit (8*N if it is used N times), and worse, >inteferes with the clarity of the code by introducing >extraneous junk which serves no real purpose at this point >in the code. Well, if you count by the token, you really should be using APL... (sorry, couldn't resist). In my view, the "real purpose" it serves is documenting for the reader the places where a package is used. If I feel that a package is used everywhere in a unit, I do put a global use clause. If I with a package for a specific purpose in a specific part of my code, I put the use around that part to document that fact. "Part" maybe as small as a couple of instructions as above, it's generally one procedure, it can be a lot more. --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog