On 5/20/05, Nathaniel Smith <[EMAIL PROTECTED]> wrote:
> On Fri, May 20, 2005 at 10:36:32AM -0500, Timothy Brownawell wrote:
> > How about a series of <length> colon <string> items, like we were
> > thinking for the output?
> > 7:parents40:0123456789abcdef0123456789abcdef01234567
> 
> Hmm, re-read my original mail ;-):

Oops :)

>  > Maybe make the format the constant "l", then a bunch
>  > of <decimal length><constant ":"><that many characters> argument
>  > strings, then the constant "e" to mark the end of the list.
>  > Semi-arbitrary, but happens to be the same as bencoding :-).
> 
> Your proposal lacks a way to tell where the beginning and end of a
> command fall (remember that a bunch of these are being sent to stdin
> sequentially).  So, I suggested, stick a constant "l" at the beginning
> (for "list", in bencoding), and a constant "e" at the end (for "end").
> Seems as good as anything else.

I had been thinking newline ('\n') at the end of each command, but
that works too.

Tim


_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to