A pointer is either structured (to make dereferencing possible) or it isn't. The syntax has previously allowed specifying a type for a pointer which was ignored (except in the case of .s or $). The bug, or quirk rather, is that it was allowed to be done. Sometimes it caused problems and sometimes not. The problems were due to confusion many times.skywalk wrote:If there is no speed improvement or bug fix involved in this pursuit, then it is only harmful to legacy code and a larger source of confusion. I cannot see the logic as presented.
I'm glad you were able to make use of a quirk to help remind you of what you were using the pointers for. That is a weak reason to keep it though.
Here another way to help your memory using the same number of characters:
Code: Select all
; 4 - include type in pointer's name
PrototypeC.l somedllfunction(handle.l, nPts.i, *xdata_f, *ydata_f, *res1_d, *res2_d)
; or conversely
PrototypeC.l somedllfunction(handle.l, nPts.i, *f_xdata, *f_ydata, *d_res1, *d_res2