<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Just chipping in my 2c:<BR>
 <BR>
How about the modules are supposed to register the 'command' whatever that is, but that the 'command' can include spaces?<BR>
 <BR>
So, "create user" should be a valid command, sending the remainder to that region (via the registered delegate).<BR>
 <BR>
which means another module can register "create region" but not "create user", as that would have already been registered.<BR>
 <BR>
Of course, it cannot register a non-character terminated subset either, like simply "create".<BR>
 <BR>
the command parser would simply run thru the list, doing a 'starts with characters' match, probably with a non-character terminator in the regexp.<BR>
 <BR>
(If you're really anal on performance, the whole list of matches can be concatenated into a regexp and compiled once)<BR>
 <BR>
Of course, you would have to register "help create user" as well, but it seems to me that there could be an abstract base class providing some protected generative helper functions.<BR>
 <BR>
(To either create and register verb+" "+noun and/or noun+" "+verb, and the corresponding help text in one go)<BR><BR>
This seems like the most flexible approach to me, as it poses no limitations on what commands makes the most sense for each context.<BR>
<BR>Best regards,<BR>Stefan Andersson<BR>Tribal Media AB<BR><BR>
> Date: Thu, 5 Feb 2009 18:30:25 +0100<BR>> From: DrScofield@xyzzyxyzzy.net<BR>> To: opensim-dev@lists.berlios.de<BR>> Subject: Re: [Opensim-dev] Organization and naming patterns of commands on the console<BR>> <BR>> Justin Clark-Casey wrote:<BR>> > Ai Austin wrote:<BR>> >> Any chance we can have the verb first, as this is much more intuitive? E.g.<BR>> >> create user<BR>> >> create region<BR>> <BR>> i prefer addressing the entity that is supposed to do something first (to get<BR>> it's attention, so to speak), then tell it what to do:<BR>> <BR>> region create<BR>> user create<BR>> user reset password<BR>> <BR>> that approach also has the advantage that it's up to the module what vocabulary<BR>> to support.<BR>> <BR>> -- <BR>> dr dirk husemann ---- virtual worlds research ---- ibm zurich research lab<BR>> SL: dr scofield ---- drscofield@xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/<BR>> RL: hud@zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/<BR>> _______________________________________________<BR>> Opensim-dev mailing list<BR>> Opensim-dev@lists.berlios.de<BR>> https://lists.berlios.de/mailman/listinfo/opensim-dev<BR><BR></body>
</html>