Open jaylorch opened 3 years ago
Currently, it's not supported to subtract two pointers, even if it's well-defined because those pointers point into the same array. For instance, you can't do:
var a: uint32[10]; ghost var i: int; i := &a[5] - &a[3]; // Should give 2
Currently, it's not supported to subtract two pointers, even if it's well-defined because those pointers point into the same array. For instance, you can't do: