Mercurial > projects > dwt-linux
annotate dwt/dwthelper/utils.d @ 27:ffa3c27c4328
Display
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 09 Jan 2008 01:08:22 +0100 |
parents | 09f5459a5014 |
children | 10acbb123580 |
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; | |
29 | |
30 | |
31 | |
32 |