[1231] in Coldmud discussion meeting

root meeting help first previous next last

[COLD] match_regexp() change?

daemon@ATHENA.MIT.EDU (Sun Feb 9 13:29:24 1997 )

Date: Sun, 9 Feb 1997 11:21:35 -0700 (MST)
From: Brandon Gillespie <brandon@cold.org>
To: coldstuff@cold.org

With the advent of regexp() the list generated from a successful match of
match_regexp() is fast becoming ignored.  To reduce wasted CPU time I am
considering changing the behaviour of match_regexp() to return a 1 or 0 by
default (this also makes it more standard with the other match_*
functions), but to allow an argument which tells it to return the standard
list.  I would probably have it use a third argument in the character
format other regexps use to 'know' flags, and I would just add a flag (say
'f'--full) for match_regexp().