Re: [code] interpreter.c headaches

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/05/97

On Sun, 5 Oct 1997, Andrew Helm wrote:

>It all started innocently enough. I noticed that skip_spaces()
>did something unintuitive: it increments the pointer passed
>to it in order to skip the spaces at the beginning of the string.

It's a very good way of doing it so long as you're not trying to call
free() on that block pointer to later. (But then it's bad practice for a
function to free() an argument when you don't know if it was dynamically

>What do you think the stock Circle behavior should be?

Make something new up, if we like it better and it is more proper, we will
probably switch.

>lower case letters. In my opinion, it should be the
>responsibility of "higher" functions (and hence putting the
>responsibility in the end programmer's hands instead of
>whoever coded the utility functions) like special procs,
>ACMDs, etc. to decide if case sensitivity is desired. There
>are exceptions, but functions that are "general utility"
>functions shouldn't assume such things. Any opinions?

str_cmp exists for insensitity, use strcmp if you want it sensitive.

The lowercaseing is there probably so people can type with the caps lock on
if they really want to with having to hold down shift to type commands.

George Greer  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

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

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