[dmd-beta] dmd 1.065 and 2.050 beta

David Simcha dsimcha at gmail.com
Thu Oct 28 06:16:46 PDT 2010


On 10/28/2010 1:24 AM, Jonathan M Davis wrote:
> The problem is string literals. Aren't string literals immutable(char[])? It
> seems incredibly stupid to have to write
No, string literals are immutable(char)[].  The following code compiles 
w/ the latest beta:

import std.string;

void main() {
     bool result = startsWith("Foo", "Fo");
}



More information about the dmd-beta mailing list