Mercurial > projects > dwt-addons
comparison dwtx/dwtxhelper/Collection.d @ 121:c0304616ea23
Fix: tango assertion error, see tango ticket 1237
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 11 Aug 2008 17:18:41 +0200 |
parents | 35f1d208f3c3 |
children | 1997315125c0 |
comparison
equal
deleted
inserted
replaced
120:3b2353d77f37 | 121:c0304616ea23 |
---|---|
1710 List subList(int fromIndex, int toIndex){ | 1710 List subList(int fromIndex, int toIndex){ |
1711 implMissing( __FILE__, __LINE__ ); | 1711 implMissing( __FILE__, __LINE__ ); |
1712 return null; | 1712 return null; |
1713 } | 1713 } |
1714 Object[] toArray(){ | 1714 Object[] toArray(){ |
1715 if( list.size() is 0 ) return null; // workaround tango ticket 1237 | |
1715 return list.toArray(); | 1716 return list.toArray(); |
1716 } | 1717 } |
1717 Object[] toArray(Object[] a){ | 1718 Object[] toArray(Object[] a){ |
1719 if( list.size() is 0 ) return a[0 .. 0]; // workaround tango ticket 1237 | |
1718 return list.toArray( a ); | 1720 return list.toArray( a ); |
1719 } | 1721 } |
1720 String toString(){ | 1722 String toString(){ |
1721 implMissing( __FILE__, __LINE__ ); | 1723 implMissing( __FILE__, __LINE__ ); |
1722 return null; | 1724 return null; |