Re: [CODE] Better argument processing

From: Franco Gasperino (awe@CET.COM)
Date: 09/22/97


> From: Angus Mezick <angus@EDGIL.CCMAIL.COMPUSERVE.COM>
> To: CIRCLE@post.queensu.ca
> Subject: Re:  [CODE] Better argument processing
> Date: Monday, September 22, 1997 6:30 AM
>
> Be very careful.  as far as I know, it is bad style for a function to
change the
> contents of a variable of some thing that is passed to it.  I know it
happens
> alot, but it is dangerous.  At some point the original value might be
needed
> again.
> --Angus

What? Bad style? Passing by refrence is a very commonly used and
sometimes necessary way to get values to functions. I cannot see how
this would be bad style, as passing by value can incurr terrible overhead
therefore reducing the speed and effectiveness of function calls...

Franco Gasperino
Cutting Edge Communications
http://www.cet.com/
509-444-INET
awe@cet.com


     +------------------------------------------------------------+
     | 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/08/00 PST