Added mem::safe_recursive_clone, and while it works for regex, it's actually slower then remaking it. Hmmmm, maybe because some of the stdlib is inefficent
This commit is contained in:
@@ -25,13 +25,6 @@ obj vector<T> (Object) {
|
||||
return this;
|
||||
}
|
||||
|
||||
fun construct(newSize: int): *vector<T>{
|
||||
size = newSize;
|
||||
available = newSize;
|
||||
|
||||
data = new<T>(newSize);
|
||||
return this;
|
||||
}
|
||||
|
||||
fun copy_construct(old: *vector<T>): void {
|
||||
construct()
|
||||
|
||||
Reference in New Issue
Block a user