I need some help with binary variables. I need to compile a buffer consisting of the old buffer with excess data, &Overplus, and what is currently read from a socket, &Buffer. How do I put these together? I attempted /bcopy &Overplus $calc($bvar(&Overplus, 0) + 1) &Buffer 1 -1, however it fails if &Overplus doesn't exist.
The only solution I can see, is to initialize &Overplus, if it doesn't already exist, with one byte, and then overwrite it with /bcopy. However, this is an ugly hack, and I would much rather appreciate some other suggestions. Or should Khaled add a function for initializing binary variables, or modify /bcopy to do it automatically?