[Opensim-dev] Command lines - use of hyphens and verb subject flipping
Justin Clark-Casey
jjustincc at googlemail.com
Mon Sep 2 18:24:36 UTC 2013
No, the dispatch is based on the entire command that the module registers (e.g. "show object name" will only receive
commands starting with the tokens "show", "object" and "name").
On 30/08/13 19:08, Dahlia Trimble wrote:
> I think the problem with verb-object is that the command handling code is designed such that multiple modules can add
> additional commands when they are instantiated, and Opensimulator uses the first word in the command to dispatch the
> command to whatever module "owns" it. If it were verb-object then it (currently) would not know how to dispatch the
> command as many modules could share the verb. It might be possible to rewrite the command dispatching code to handle the
> verb-object form but then existing modules that are not in core would need to be updated or their registered commands
> would not work.
>
>
> On Fri, Aug 30, 2013 at 6:57 AM, R.Gunther <rigun at rigutech.nl <mailto:rigun at rigutech.nl>> wrote:
>
> i agree verb-object is a bit confuseing with typeing compared to verb object.
> delete-region is for me not really logic, delete region is more clear.
>
>
> On 2013-08-30 15:32, Ai Austin wrote:
>
> At 11:00 30/08/2013, opensim-dev-request at lists.__berlios.de <mailto:opensim-dev-request at lists.berlios.de> wrote:
>
> I'm still not sure whether verb-object is better (e.g. send appearance) or object-verb (e.g. appearance send).
>
>
> I strongly vote for verb object in such computer script languages.
>
> This works well also where there are more than one main parameter too, as that can get confusing otherwise. Its
> also the way most commands already are.
>
> There are just a few hyphenated commands as you say. I spotted delete-region and remove-region
>
> command-script is an odd on as really its just run <script> script <script> or command <script> ? But its one I
> always seem to get wrong. Leaving in a few problematic ones with hyphen and non-hyphen versions, but making the
> help text and documentation give the definitive one to move forward with might be an approach?
>
>
> _________________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
> https://lists.berlios.de/__mailman/listinfo/opensim-dev <https://lists.berlios.de/mailman/listinfo/opensim-dev>
>
>
> _________________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
> https://lists.berlios.de/__mailman/listinfo/opensim-dev <https://lists.berlios.de/mailman/listinfo/opensim-dev>
>
>
>
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
--
Justin Clark-Casey (justincc)
OSVW Consulting
http://justincc.org
http://twitter.com/justincc
More information about the Opensim-dev
mailing list