Order of command parameters

59 views
Skip to first unread message

Heiko Seeberger

unread,
May 8, 2012, 10:26:12 AM5/8/12
to scal...@googlegroups.com
Hi,

I could look it up in the source code, but as this might also be of interest for others (and because I am lazy, of course), I would like to know whether the parameters of a command will always be in the same order like defined in the Scalatron Protocol.

As an example, Welcome is defined as Welcome(name=String,path=string,apocalypse=int,round=int). Does this imply that the parameters are always in the following sequence: name, path, apocalypse, round?

Thanks
Heiko

Greg Scalatron

unread,
May 9, 2012, 12:06:53 PM5/9/12
to scal...@googlegroups.com
Hi Heiko!

Right now, no - the parameter order is non-deterministic (generated from some Map with no particular ordering).
I think someone actually put a comment on that into the docs last week. :-)
If that is not the case, it should probably be put into "/doc/Scalatron Protocol.md". I'll check it out.

- Greg

Heiko Seeberger

unread,
May 9, 2012, 1:43:04 PM5/9/12
to scal...@googlegroups.com
On May 9, 2012, at 6:06 PM, Greg Scalatron wrote:

> Hi Heiko!
>
> Right now, no - the parameter order is non-deterministic (generated from some Map with no particular ordering).

That's fine. I already implemented a parser based on this assumption.

Thanks
Heiko

Reply all
Reply to author
Forward
0 new messages