www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/26/22:03:01

From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Purpose of y1() in standard library?
Date: Thu, 26 Aug 1999 19:15:04 -0400
References: <199908260851 DOT LAA09357 AT ankara DOT Foo DOT COM>
X-Posted-Path-Was: not-for-mail
X-Accept-Language: en
X-ELN-Date: 26 Aug 1999 23:13:25 GMT
X-ELN-Insert-Date: Thu Aug 26 16:15:09 1999
Organization: Nocturnal Aviation
Lines: 21
Mime-Version: 1.0
NNTP-Posting-Host: dialup-209.246.78.64.newyork2.level3.net
Message-ID: <37C5CA78.2065FA1B@earthlink.net>
X-Mailer: Mozilla 4.61 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


"S. M. Halloran" wrote:
> 
> I get warnings in much of my code about my local variable named 'y1' shadowing
> a global, which is defined the 'math.h'.  Naming variables like 'x1', 'y1',
> 'x2', 'y2' is rather logical for programs that plot pixels and so on, so it
> would be rather irritating for a global to define itself that way, unless it
> doesn't really need to be defined as such.

Maybe you should rethink the normally to be avoided use of global
variables.



-- 
Martin Ambuhl	mambuhl AT earthlink DOT net

__________________________________________________________
Fight spam now!
Get your free anti-spam service: http://www.brightmail.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019