Re: [Issue 8434] [2.060 beta] cannot implicitly convert expression (vs1.opCast()) of type const(Vector2D) to object.Object

2012-07-28 Thread Namespace

On Saturday, 28 July 2012 at 10:54:47 UTC, Kenji Hara wrote:

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



--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-07-28 
03:54:44 PDT ---

Sorry, are these code really works in 2.059?

As far as I know, there is a problem around equality comparison 
of class
objects which have user-defined opCast. But the beginning of it 
(2011/08/09) is

older than 2.059 (2012/04/12 released).

And, I've tried to reproduce the problem, but in 2.059, same 
errors have

occurred.


I could swear that this code works on my desktop pc, but now on 
my laptop it fails  with 2.059 also.

But i think that code should work, or?
And are they any workarounds?


Re: [Issue 8434] [2.060 beta] cannot implicitly convert expression (vs1.opCast()) of type const(Vector2D) to object.Object

2012-07-28 Thread Namespace

This works on 2.059 and even with 2.060.
http://dpaste.dzfl.pl/cd9c016c

I will check tomorrow, why the other code compiles without errors 
on my desktop PC.