Source
- URL: https://x.com/Ron172892111531/status/1990816225815875661
- Author: maple zero-op (@Ron172892111531)
- Posted: 2025-11-18 16:15:50
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