Cast Object - get null

Namespace rswhite4 at googlemail.com
Thu Apr 19 02:15:23 PDT 2012


On Thursday, 19 April 2012 at 09:05:13 UTC, Jonathan M Davis 
wrote:
> On Thursday, April 19, 2012 10:48:45 Namespace wrote:
>> And which version do you use? I use DMD 2.059 on Windows 7.
>> 
>> I get this compile error with your code
>> object.Error: Access Violation
>> ----------------
>> 41943C
>> 4192C7
>> 40F75B
>> 40BE90
>> 40BECA
>> 40BAEB
>> 4206E1
>> 
>> If i comment out this part
>> 
>>      if (vs2 == vf) {
>>          writeln("equal");
>>      }
>> 
>> 
>> it works fine.
>
> I tried both 2.058 and the latest from github. But I'm on 
> 64-bit Linux, so
> it's possible that you're seeing a Windows-specific issue.
>
> - Jonathan M Davis

A specific Windows bug with opEquals and opCast? My Windows is 64 
bit also.
Can anyone reproduce this behaviour with Windows?
I will download dmd later again to check if i have an older 
version or beta.


More information about the Digitalmars-d-learn mailing list