Source

Branch

1/ @Ron172892111531

@valigo

Wouldn’t this make working with arrays more difficult? Array[1] would have to be Array[sizeof(data)] etc

2/ @valigo

@Ron172892111531

As I said somewhere else, it makes sense sizeof pointer math to be the default. I was just saying that it’s confusing because “+1” is not actually “plus one”

3/ @Ron172892111531

@valigo

Ptr+1. It’s not plus one byte (or int addition), it’s plus one object. I think it’s only confusing when people assume pointers are just fancy integers. They’re meant to work with arrays, and they do flawlessly as long as one remembers that they are an extension of the array