What are the rules for counting bytes in the immediate window? I have found very little in the way of VBA docuimentation to try and help with this, because is seems to be a relatively uncommon golfing language. For clarity, I'm not sure how the rules would be applied in a few test cases below, and would like an explanation of how to count the bytes for these VBA specific examples
If I type into the immediate window, several things are returned, I want to know the byte count of what is returned (prompted by my answer to this question). Here's some specific cases I'm not sure about:
When I enter this, I am put on a new line. Pressing ↓ down arrow does nothing, so I assume no bytes are below the cursor. I notice that a space is added after the
;, so I'm guessing the byte count is 1 for the space + 1 for the newline? Or is it customary to not count the extra space?
That evaluates the constant a, undefined at this point. When entered, the cursor is put 2 lines below the input, rather than immediately below as before. Also, a space is put after the a, and on the intermediate line. So that suggests 2 newlines and 2 spaces = 4 byte output. Also, unlike before, pressing ↓ does do something, it takes me onto the next line. So maybe 3 newlines?
I have no idea what's going on there, does it count as a tab or a load of spaces? Maybe I'm mixing up newlines and spaces, I'm not sure.