# Wish list

Coolin MacKaarmick (colin@tripod.tripod.com)
Tue, 29 Aug 1995 06:28:51 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    Responding to two people here, sorry for any confusion ...

    On Mon, 28 Aug 1995 bartmoss@mistral.co.uk wrote:

    [snip]

    > >> @prop #100.newprop #99.oldprop
    > >> throw ball at #100.someprop
    > >> etc.
    > >>
    > >> ... i.e. some more subtle interpretation by parser.
    > >>
    > >This could probably be done in-DB fairly easily, by hacking
    > >$string_utils:match_object or something similar.  I do think that we need

    I'm not sure that would work: the server parser, only calls :huh*() verbs
    to try to figure things out, not $string_utils:match_object().

    > >to give the server more support for in-DB matching though.  Maybe let it
    > >call #0:do_match instead of the normal server matching if it exists.

    Nice idea; perhaps hack $command_utils:do_huh() to call :do_match() that
    would parse things like "#100.someprop" and pull an objnum out of that.

    [snip]

    > It is an easy hack, I added ordinal/possessional parsing to a MOO I helping
    > out on. What I did was add a new  :huh verb, lik slotting in a new chip board ;)
    > Some would go with this, infact a few lines of code should do it.

    Okay, looks like Chris already thought of this.

    > -Chris.

    Still, I might like to do something like

    	@prop me.office $office

    which returns

    	Syntax error in initial value:  `$' unexpected

    This is a product of @prop, and I could hack that but I don't want to
    have to hack every @-verb that I might want to give an expression
    argument to.  I'm not sure if a server mod is the optimal solution, but
    hacking oodles of core programmer verbs doesn't strike me as optimal either.

    I guess it's a #0:do_match() and a call to that from $c_u:do_huh(), for now
    at least.

    Colin

    ############################################################################
    #Colin F. McCormick	      Freelance Programmer -- MOO & Unix specialist#
    #colin@tripod.tripod.com	http://student_97ffa.williams.edu/~cmccormi#
    # GS/Lit/M d? p- c++(---) l+(++) u++ e++ m++(-) s+/ n+ h* f* !g @w++ t+ y? #
    ############################################################################