Mercurial > projects > dwt-linux
view 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 |
line wrap: on
line source
/** * Authors: Frank Benoit <keinfarbton@googlemail.com> */ module dwt.dwthelper.utils; public import dwt.dwthelper.System; import tango.io.Stdout; import tango.stdc.stdlib : exit; void implMissing( char[] file, uint line ){ Stderr.formatln( "implementation missing in file {} line {}", file, line ); Stderr.formatln( "exiting ..." ); exit(1); } abstract class ArrayWrapper{ } class ArrayWrapperT(T) : ArrayWrapper { public T[] array; public this( T[] data ){ array = data; } } alias ArrayWrapperT!(int) ArrayWrapperInt; alias ArrayWrapperT!(Object) ArrayWrapperObject; alias ArrayWrapperT!(char) ArrayWrapperString; alias ArrayWrapperT!(char[]) ArrayWrapperString2;