Add support for external depencencies

This commit is contained in:
Mergul 2020-05-12 17:28:31 +02:00
parent b19fbb1528
commit 5e884352ba
5 changed files with 440 additions and 5 deletions

View file

@ -62,11 +62,11 @@ public:
used = 0;
}
export bool empty() {
export bool empty() const {
return (used == 0);
}
export size_t length() {
export size_t length() const {
return used;
}
@ -197,9 +197,9 @@ public:
assert(ok, "There is no such an element in vector");
}
export ref T opIndex(size_t elemNum) {
export ref T opIndex(size_t elemNum) const {
//debug assert(elemNum < used, "Range violation [index]");
return array.ptr[elemNum];
return *cast(T*)&array.ptr[elemNum];
}
export auto opSlice() {