On Sun, 28 Jun 2015 00:36:41 +0000, Jonathan M Davis wrote: > Full property enforcement would fix these issues, but we're never going > to get it.
i must admit that Kenji's patch (referred by OP) is the best solution i've seen. it fixes the most annoying thing with delegate properties, and it can be easily tuned to emit a warning or deprecation on calling properties with "()". i incorporated that patch in my fork and did exactly that: turned errors to warnings. and i must say that i'm still able to compile majority of D code without any problems. and i found some invalid "front" usage in Phobos by the way (aka `front()`). also, warning warns about "()()" on delegate property, or about "()" on delegate property, depending of module being marked as "modern" or not. so far i found zero problems with it. yet the patch seems to be rejected by W&A without any sane reason. ah, yes, the thing that *can* cause same havok was pointed by Kenji himself [1]. i hit it once or twice, and it's still solvable with warning and deprecation cycle. [1] https://github.com/D-Programming-Language/dmd/ pull/2305#issuecomment-20657962
signature.asc
Description: PGP signature
