Mail Archives: djgpp/1999/08/26/23:29:08
Martin Ambuhl wrote:
>
> "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.
I'm sorry. This was written too fast and with too little thought. The
y*() functions are not part of the ANSI/ISO specs. This warning will go
away with the use of '-ansi -pedantic'. Otherwise, this shadowing will
not do you any harm.
>
> --
> Martin Ambuhl mambuhl AT earthlink DOT net
>
> __________________________________________________________
> Fight spam now!
> Get your free anti-spam service: http://www.brightmail.com
--
Martin Ambuhl mambuhl AT earthlink DOT net
__________________________________________________________
Fight spam now!
Get your free anti-spam service: http://www.brightmail.com
- Raw text -