Re: [CODE] Better argument processing

From: Sammy (samedi@DHC.NET)
Date: 09/22/97

On Mon, 22 Sep 1997, Angus Mezick wrote:

>> This is my idea of a better two_arguments() function.  It's meant to act
>> on the original "argument" paramter passed to all the ACMD functions, or
>> you can pass it a copy of argument for nondestructive processing (for
>> spec_procs).

> 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.

Right.  That's why I mentioned passing a copy of the arguments if you care
what happens to them.  As Ron proved, you can destroy the argument list
quite fine with the stock circle functions :)

Basically it's meant to be used when you're at the end of the line,
meaning you've already gotten to the ACMD function, or you're in a
spec_proc and have determined the special is being invoked.

I haven't been taught the correct way to do things so I'm not handicapped
by a sense of style ;)


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST