Mercurial > projects > dwt-linux
annotate dwt/dwthelper/utils.d @ 28:10acbb123580
Widget and TypedListener
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 09 Jan 2008 02:59:32 +0100 |
parents | ffa3c27c4328 |
children | ddb19cb18d2e |
rev | line source |
---|---|
12 | 1 /** |
2 * Authors: Frank Benoit <keinfarbton@googlemail.com> | |
3 */ | |
4 module dwt.dwthelper.utils; | |
5 | |
25
fc2b263b8a3f
Merged back the System.arraycopy and use a System class
Frank Benoit <benoit@tionex.de>
parents:
12
diff
changeset
|
6 public import dwt.dwthelper.System; |
fc2b263b8a3f
Merged back the System.arraycopy and use a System class
Frank Benoit <benoit@tionex.de>
parents:
12
diff
changeset
|
7 |
12 | 8 import tango.io.Stdout; |
9 import tango.stdc.stdlib : exit; | |
10 | |
11 void implMissing( char[] file, uint line ){ | |
12 Stderr.formatln( "implementation missing in file {} line {}", file, line ); | |
13 Stderr.formatln( "exiting ..." ); | |
14 exit(1); | |
15 } | |
16 | |
26 | 17 abstract class ArrayWrapper{ |
18 } | |
19 | |
20 class ArrayWrapperT(T) : ArrayWrapper { | |
27 | 21 public T[] array; |
22 public this( T[] data ){ | |
23 array = data; | |
24 } | |
26 | 25 } |
26 | |
27 alias ArrayWrapperT!(int) ArrayWrapperInt; | |
28 alias ArrayWrapperT!(Object) ArrayWrapperObject; | |
28 | 29 alias ArrayWrapperT!(char) ArrayWrapperString; |
30 alias ArrayWrapperT!(char[]) ArrayWrapperString2; | |
26 | 31 |
32 | |
33 | |
34 |