Branch: Tag:

2014-05-04

2014-05-04 18:12:55 by Martin Nilsson <nilsson@opera.com>

Allow chaining of put calls to struct.

428:    return r + ":" + sizeof(s);   ]], "x3:0")    + test_eq([[ ADT.struct()->add_data("hej")->put_uint(1,2)->put_var_string("hi",1)->put_bignum(Gmp.mpz(1),1)->put_fix_string("x")->put_fix_uint_array(({6,7}),1)->put_var_uint_array(({6,7}),1,1)->pop_data() ]], "hej\0\1\2hi\1\1x\6\7\2\6\7") +  +  + dnl ADT.Queue +    test_any([[    object q=ADT.Queue();    if(sizeof(q)) return 1;