On Mon, Sep 5, 2011 at 4:41 PM, Jonathan M Davis <[email protected]> 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. _______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
