[Issue 4539] Refuse assignment to string literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 29 20:51:43 PST 2012


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



--- Comment #19 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-01-29 20:51:39 PST ---
(In reply to comment #17)
> void foo(immutable ref string) {}

I'm curious, what does `immutable ref string` buy you compared to just
immutable string? Can't the compiler pass by ref automatically if it's an
immutable type?

-- 
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