Date: Fri, 31 Jan 2025 11:24:10 +0100
Hi Filip,
I think it is a bit more involved.
There is an active proposal going into that direction:
https://github.com/cplusplus/papers/issues/868
P2142 Allow '.' operator to work on pointers
Perhaps you can cooperate?
-----Ursprüngliche Nachricht-----
Von:Filip via Std-Proposals <std-proposals_at_[hidden]>
Gesendet:Fr 31.01.2025 11:23
Betreff:[std-proposals] Possible deprecation of -> operator
An:std-proposals_at_[hidden];
CC:Filip <fph2137_at_[hidden]>;
Hi everyone,
I’m wondering about the possibility of removal or deprecation of -> operator in favor of automatic dereference by ‘.’
If I remember correctly in tcc, compiler has a single if to check if they are used correctly and could automatically use the correct operation.
Are there any good reasons to keep that syntax?
In my experience it’s just an annoying part of early c that is maintained.
Cheers,
Filip
Cheers, Filip
--
Std-Proposals mailing list
Std-Proposals_at_[hidden]
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2025-01-31 10:27:50