Comments
Loading Dream Comments...
You must be logged in to write a comment - Log In
If we don't specify a length limit when Specifying a Buf, it could grow unlimitedly, consuming the whole datastore (e.g. an infinte recursion). So we can specify a maximum size thus :
MyBuf <::[256] (string="hello", a=3, b=4, foo=&{sin(%)});
This means that if we append (Insert) more than 256 elements, an exception can be thrown. The presence of a length limit is indicated by a Buf Flag (see "Buf Flags").
The Buf format then becomes $EB flags length $ED lengthlimit $ED dopevector Datablock $00.