Mercurial > projects > dwt-mac
comparison dwt/graphics/GC.d @ 8:a9ab4c738ed8
Fix: instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:32:39 +0200 |
parents | e831403a80a9 |
children | 5123b17c98ef |
comparison
equal
deleted
inserted
replaced
7:e831403a80a9 | 8:a9ab4c738ed8 |
---|---|
1398 * | 1398 * |
1399 * @see #hashCode | 1399 * @see #hashCode |
1400 */ | 1400 */ |
1401 public bool equals(Object object) { | 1401 public bool equals(Object object) { |
1402 if (object is this) return true; | 1402 if (object is this) return true; |
1403 if (!(object instanceof GC)) return false; | 1403 if (!( null !is cast(GC)object )) return false; |
1404 return handle is (cast(GC)object).handle; | 1404 return handle is (cast(GC)object).handle; |
1405 } | 1405 } |
1406 | 1406 |
1407 /** | 1407 /** |
1408 * Fills the interior of a circular or elliptical arc within | 1408 * Fills the interior of a circular or elliptical arc within |