Mercurial > projects > qtd
comparison d2/qtd/Array.d @ 357:9784459f0750
An attempt (failed due to optlink) to improve locality of declarations exported from QtD executables
Q_CLASSINFO implementation
Now Qtd can be built on Windows
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Wed, 02 Jun 2010 19:38:05 +0300 |
parents | 31520b2c0b3c |
children |
comparison
equal
deleted
inserted
replaced
356:12cec2d14e1c | 357:9784459f0750 |
---|---|
9 * (See accompanying file boost-license-1.0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | 9 * (See accompanying file boost-license-1.0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
10 * | 10 * |
11 */ | 11 */ |
12 module qtd.Array; | 12 module qtd.Array; |
13 | 13 |
14 version (Tango) | 14 import core.stdc.string; |
15 import tango.stdc.string; | |
16 else | |
17 import core.stdc.string; | |
18 | 15 |
19 void remove(T)(ref T[] haystack, T needle) | 16 void remove(T)(ref T[] haystack, T needle) |
20 { | 17 { |
21 foreach (i, e; haystack) | 18 foreach (i, e; haystack) |
22 { | 19 { |