Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet218.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 4e5843b771cc |
children |
comparison
equal
deleted
inserted
replaced
111:b6e9904989ed | 112:9f4c18c268b2 |
---|---|
35 import org.eclipse.swt.graphics.GC; | 35 import org.eclipse.swt.graphics.GC; |
36 import org.eclipse.swt.graphics.Image; | 36 import org.eclipse.swt.graphics.Image; |
37 | 37 |
38 import java.lang.all; | 38 import java.lang.all; |
39 | 39 |
40 import Math = tango.math.Math; | 40 version(Tango){ |
41 import Math = tango.math.Math; | |
42 } else { // Phobos | |
43 import Math = std.algorithm; | |
44 } | |
45 | |
41 version(JIVE){ | 46 version(JIVE){ |
42 import jive.stacktrace; | 47 import jive.stacktrace; |
43 } | 48 } |
44 | 49 |
45 void main() { | 50 void main() { |