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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8