array.length++ not an lvalue

jcc7 technocrat7 at gmail.com
Thu Jun 19 11:26:47 PDT 2008


== Quote from Erik Lechak (prochak at netzero.net)'s article
...
> I ran into my first WTF moment with D.  I spent way too much time figuring out
why 'array'.length++ was a compiler error (Error: x.length is not an lvalue).
> This is a newsgroup entry describing the problem:
>
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=39179
> Is there a document detailing these "special exceptions" so that I
> don't have to blindly stumble upon them?  If not are there any more
> that should be documented so that I can add them to my Wiki
>(http://www.lechak.info/wiki/index.php?title=D_Programming_Language)?

Perhaps this is what you're looking for...
http://www.prowiki.org/wiki4d/wiki.cgi?ErrorMessages



More information about the Digitalmars-d mailing list