On 2010-09-09 20:07:20 -0400, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> said:
http://d-programming-language.org
From David Gileadi: the annoying Google Translate bar behavior on
browsers with other languages has been fixed, the behavior when
shrinking and growing the window size has been improved, the Reddit
button is gone, and a few styles were changed.
I just happened to take a look at the FAQ / Rationale page, and found a
lot of outdated answers about operator overloading (most of that
section is due for a rewrite).
<http://d-programming-language.org/rationale.html>
This one is quite funny to read because it basically says that the new
operator overloading regime is something that will lead to ugly hacks!
:-)
"""
Why not have binary operator overloads be static members, so both
arguments are specified, and there no longer is any issue with the
reverse operations?
This means that the operator overload cannot be virtual, and so likely
would be implemented as a shell around another virtual function to do
the real work. This will wind up looking like an ugly hack. Secondly,
the opCmp() function is already an operator overload in Object, it
needs to be virtual for several reasons, and making it asymmetric with
the way other operator overloads are done is unnecessary confusion.
"""
--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/