and blob.writen giving the index does not exist errors


There’s probably a simple answer to this but I can’t fathom it, can some please explain what I’m missing?



This works
serialblob <- blob(64) //serialblob = 0x3132 serialblob.writen(0x3132, 'w')

This doesn’t work, returns index does not exist.
serialblob <- blob(64) serialblob = 0x3132 serialblob.writen(0x3132, 'w')

A stab: line 2 in the second code block re-assigns the global variable seriablob as an integer, and Squirrel’s integer delegate object doesn’t support seek(), len() or writen()?