Re: Passing by reference

From: George Greer (greerga@circlemud.org)
Date: 03/13/01


On Tue, 13 Mar 2001, Patrick Dughi wrote:

>        Uhm.. Passing by reference is a feature of the language you use to
>write code.  Circle is written in C, which does support that.

"does not", I believe you meant. Anyway, passing by reference can be quite
evil.

>        If you're going to increment a 'memory location' for each call to
>some function, somewhere, you can probably find an easier way to do it.
>Why don't you just use a static variable inside the function?

I like using the return code for it, but it depends on what you're doing.

--
George Greer            | If it's about the CircleMUD mailing list,
greerga@circlemud.org   | mail owner-circle@post.queensu.ca instead.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST