Adriaan van Os wrote:
The same (and probably a lot of other weird stuff) can be achieved We support `absolute' for BP compatibility, but IMHO then we should restrict it to what BP requires, i.e. really absolute addresses, or the address of entire variables or parameters.
I am not enthousiastic about this one because GPC
- is very restrictive in what typecasts are allowed
Via pointers you can cast basically everything, i.e. `PNewType (@OldVar)^'. (Sure, you must be able to take the address, i.e. lvalues, and you may get warnings about alignment, and on strict alignment machines it may actually crash, but all of this is also true for absolute variables. In fact, internally absolute variables do just cast pointers.)
- typecastst with $R+ cause range-check errors.
Which kinds of typecasts? Can you give an example?
Frank