[Issue 6611] array[]++ and array[]-- too?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 6 10:41:46 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6611



--- Comment #3 from yebblies <yebblies at gmail.com> 2011-09-07 03:41:35 EST ---
(In reply to comment #2)
> I understand. If doing this is not good, then I suggest to turn this into a
> diagnostic enhancement request. So given code like this:
> 

It's probably not worth introducing yet another hidden allocation, or a special
case as it can be easily written using pre-inc.

> void main() {
>     int[10] a;
>     a[]++;
> }
> 
> 
> to raise a single error message that explains why that vector op is on purpose
> not supported.

That sounds reasonable, the error message is terrible.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list