[phobos] [D-Programming-Language/phobos] 601c75: Improve parsing error handling

Daniel Murphy yebblies at gmail.com
Sun Sep 4 23:49:26 PDT 2011


On Mon, Sep 5, 2011 at 4:41 PM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>
> It still baffles me why anything other than a variable would be an lvalue or why
> you would ever be able to take the address of anything other than a variable
> or a function. But what is is, I guess.
>
> In any case, if that's what's going on, string literals really should be typed
> as immutable strings and not be accepted by a function which takes ref string.
>
> - Jonathan M Davis

The problem with immutable(string[]) is auto variables will end up
with that type.
Not to mention a couple of bugs that would allow you to pass it by ref anyway.


More information about the phobos mailing list