comparison dwtx/draw2d/geometry/Point.d @ 101:1082a0fc2bb8

First Draw2D example running
author Frank Benoit <benoit@tionex.de>
date Sun, 03 Aug 2008 02:17:46 +0200
parents 95307ad235d9
children
comparison
equal deleted inserted replaced
100:86617aa6b5dd 101:1082a0fc2bb8
31 : Cloneable, /+java.io.Serializable,+/ Translatable 31 : Cloneable, /+java.io.Serializable,+/ Translatable
32 { 32 {
33 33
34 static final long serialVersionUID = 1; 34 static final long serialVersionUID = 1;
35 /**A singleton for use in short calculations*/ 35 /**A singleton for use in short calculations*/
36 public static const Point SINGLETON; 36 private static Point SINGLETON_;
37 37 public static Point SINGLETON(){
38 static this(){ 38 if( SINGLETON_ is null ){
39 SINGLETON = new Point(); 39 synchronized( Point.classinfo ){
40 if( SINGLETON_ is null ){
41 SINGLETON_ = new Point();
42 }
43 }
44 }
45 return SINGLETON_;
40 } 46 }
41 47
42 /**x value*/ 48 /**x value*/
43 public int x; 49 public int x;
44 /**y value*/ 50 /**y value*/