Re: a problem in index_boot

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 02/19/98


     during compilation (not sure which stage) i think function names and
     variable names get stored in the same symbol table (they are both
     symbols so....) and -Wshadow just looks for duplicate declarations.
     This is how it would seem to behave... hmmers
     anyone know if i am close?
     --Angus


______________________________ Forward Header __________________________________
Subject: Re:  a problem in index_boot
Author:  INTERNET:dkoepke@california.com at CSERVE
Date:    2/18/98 10:02 PM

On Wed, 18 Feb 1998, Angus Mezick wrote:

->     ya missed the point.... index is being used as a variable in the code
->     and is a function in the strings.h package. kinda like when someone
->     declares the variable number, but there is a number func in the circle
->     code.

Not really, I repeat: "-Wshadow checks if a local variable shadows
_another local variable_."  So, obviously, it won't catch a name
contradiction between a local variable and an external function.  The
rest of the message was just to make clear that you shouldn't expect
strchr() and index() to perform exactly the same...:)

Or, I could have been wrong, but made my statements so general that I
can now cover my ass...one or the other...I don't remember.

-dak


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST