3 ms·
Pretty neat to get it so small. Though it suffers the same problem that tcl originally had, but fixed later. Reusing C strings as tcl strings means you can't
by tyingq 5y ago
Pretty neat to get it so small. Though it suffers the same problem that tcl originally had, but fixed later. Reusing C strings as tcl strings means you can't read or write a NULL character. Which would probably be limiting on a microcontroller.
- guerrilla 5y agoSo, does this mean Tcl ended up working on arrays of bytes then? Or is there more to it?
- tyingq 5y agoHere's what the changelog said for 8.0a1 "Binary data support. The new compiler C APIs allow any Tcl value to contain arbitrary binary data (strings are counted in addition to being null terminated)." I take that to mean it was probably a struct with a size and a buffer.