D1 & D2 alpha's for Win64

Sönke Ludwig sludwig at outerproduct.org
Sat Oct 20 01:16:41 PDT 2012


Am 10/20/2012 9:20 AM, schrieb Sönke Ludwig:
> Am 10/14/2012 9:54 PM, schrieb Walter Bright:
>> http://ftp.digitalmars.com/dmd1beta.zip
>> http://ftp.digitalmars.com/dmd2beta.zip
>>
>> Be the first kid on your block to build a dmd Win64 app!
> 
> I get a problem, that is not really 64-bit related, but currently keeps
> me from trying anything more serious:
> 
> const(T[U]) instantiates an AssociativeArray!(U, const(T)) internally
> and complains about some failing assignment to a const(T) (without line
> number).
> 
> I think it should rather create a const(AssociativeArray!(U, T)), which
> would probably avoid that error.
> 

It's a bit more complicated and opAssign/foreach related:

struct Test {
	void opAssign(in Test v) {}
	void opAssign(in Test[string] value){ foreach( k, v; value ){} }
}

Error: function test.Test.opAssign (const(Test) v) is not callable using
argument types (const(Test)) const
Error: cannot implicitly convert expression (p.value) of type
const(Test) to const(Test[string])


More information about the Digitalmars-d-announce mailing list