[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
On 05-Apr-2000 Miroslav Silovic <silovic@regoc.srce.hr> said: 
> I'd suggest a better way, one that involves adding another
> argument template to command templates. If you want, for
> example, that get command only works with local objects, it'd
> be natural to define get command template as 'get
> <local:descendant of $location>' and then leave the parsing to
> the system that's already in place for that. Read the code on
> $command_lib to find the hooks you'll need.

While I definitely agree this would be a much cleaner implementation,
one problem I can think of off the top of my head is with things such
as 'look at taran's coat'. I guess this could still be handled as you suggest,
but it seems like it would be duplicating a lot of code already in
match_environment(). I honestly don't know what else uses match_environment
(though I suppose I should check that out), so I guess my approach could be
breaking things I'm not thinking of.