Revised RFC on range design for D2
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Fri Oct 3 02:45:51 PDT 2008
Andrei Alexandrescu wrote:
> 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
Agh, this was a clear and good opportunity to fork a new thread.
--
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d-announce
mailing list