Prof A Olowofoyeku (The African Chief) wrote:
At the risk of trying to teach one's grandmother how to suck eggs, these seem to me to be less error prone.
In another mailing list, I found the sentence ... "But it's a chicken-and-egg issue; until Mach-O does this, no Mach-O partisan will understand." The same here. It is difficult to appreciate a feature from a world you haven't entered. You get used to the work-around or my-way-to-do-it, where the guy from the other world relies on it.
The example program was designed to be as short as possible, not to be in any way useful or convincing ...
I agree that typecasts and absolute variables can do the job. But that holds for **any** use of untyped pointers. So, are untyped pointers an elegant or a dangerous feature ? Well, I could argue pro and contra .... The programmer has to make a decision on a case by case basis.
GPC **has** untyped pointers and I don't think that case (3) is opposite to their purpose and intentions.
Regards,
Adriaan van Os