4 ms·
Perhaps a solution would be to introduce the concept of relative pointers. I.e., the pointer becomes a signed value that should be added to the address of the p
by amelius 10y ago
Perhaps a solution would be to introduce the concept of relative pointers. I.e., the pointer becomes a signed value that should be added to the address of the pointer to obtain the address of the location pointed to. Not sure what the implications would be. Of course the standard data-structures would need to support such pointers.
After some searching, I found that Microsoft Visual Studio supports something similar, and exactly for the application I had in mind: [1].
[1] https://msdn.microsoft.com/en-us/library/57a97k4e.aspx https://msdn.microsoft.com/en-us/library/57a97k4e.aspx