delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/27/08:39:03

From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-Id: <199703271334.OAA21185@gilberto.physik.rwth-aachen.de>
Subject: Re: function arguments aliases?
In-Reply-To: <333AF42A.4E59@post.comstar.ru> from Dim Zegebart at "Mar 27, 97 02:26:50 pm"
To: zager AT post DOT comstar DOT ru
Date: Thu, 27 Mar 1997 14:34:30 +0100 (MET)
Cc: djgpp AT delorie DOT com
Reply-To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
MIME-Version: 1.0

> Hi,
> Just a small question :
> assume,
> void foo(int x,int y)
> {
> // may I use here not x y names but somthing like arg1 and arg2 ?
> // For example :
>  putpixel(arg1,arg2); //instead of putpixel(x,y)

You should use x,y if you want to pass x,y unchanged to putpixel.
(provided the typing is correct) Everything else is superfluous.

What's the problem behind it?

> }
> (I'm using DJGPP v2.2)
> 
> -- 
> Regards,
> Dim Zegebart, http://www.geocities.com/siliconvalley/pines/7817
> Moscow Russia.
> 
[p.s. deleted ]

--
Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de

- Raw text -


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