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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a687662f09731bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone.austin.rr.com!news.rr.com!tornado.texas.rr.com.POSTED!53ab2750!not-for-mail From: lou Subject: greptree User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Message-Id: Newsgroups: comp.lang.ada References: <1132227919.9036.51.camel@sonnenregen> <1132233886.11218.11.camel@sonnenregen> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 22 Nov 2005 05:11:56 GMT NNTP-Posting-Host: 67.10.23.59 X-Complaints-To: abuse@rr.com X-Trace: tornado.texas.rr.com 1132636316 67.10.23.59 (Mon, 21 Nov 2005 23:11:56 CST) NNTP-Posting-Date: Mon, 21 Nov 2005 23:11:56 CST Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news1.google.com comp.lang.ada:6526 Date: 2005-11-22T05:11:56+00:00 List-Id: I agree that the use clause obscures the source of a function. However I will use it for overloaded operators and for project wide type definitions. > I don't only oppose it because of the ambiguity, but even when there > is no ambiguity, it's a severe inconvenience to have to grep a large > tree to hunt down a declaration. I use the following script to search the code tree when gps won't work, for example on imported code. #!/bin/bash key=$1 src=$2 for i in `find $src -type f | gawk '{gsub(" ","###",$0);print $0}'` do f=`echo $i | gawk '{gsub("###"," ",$0);print $0}'` grep -in $key "$f" | gawk -v var="$f" '{print var":"$0}' done