Revised RFC on range design for D2
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Oct 2 13:03:42 PDT 2008
Bill Baxter wrote:
> On Fri, Oct 3, 2008 at 3:16 AM, Fawzi Mohamed <fmohamed at mac.com> wrote:
>
>> This is a very nice feature to have.
>> D reaches this with a minimal change to the language:
>> optional parenthesis, and setter functions.
>>
>> ...
>> It does have some limitation (no +=,-=,...) but is very compact, and simple
>> to explain.
>
> Fortunately this is an orthogonal issue. This could (and should IMO)
> be fixed independent of the current discussion.
Yah, overloaded ops are due for an overhaul. I'm almost afraid to ask...
any ideas? :o)
One goal is to fix opIndexAssign and make it work similar to the way it
works in arrays, e.g. a[b] += c. Indexing into hash tables is a good
test bed.
Andrei
More information about the Digitalmars-d-announce
mailing list