Browse Source

Quick.Array new implicit

Unknown 6 years ago
parent
commit
d8ec710499
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Quick.Arrays.pas

+ 7 - 1
Quick.Arrays.pas

@@ -7,7 +7,7 @@
   Author      : Kike Pérez
   Version     : 1.2
   Created     : 24/03/2019
-  Modified    : 03/04/2019
+  Modified    : 11/04/2019
 
   This file is part of QuickLib: https://github.com/exilon/QuickLib
 
@@ -73,6 +73,7 @@ type
     function Contains(aItem : T) : Boolean;
     function IndexOf(aItem : T) : Integer;
     class operator Implicit(const Value : TxArray<T>) : TArray<T>;
+    class operator Implicit(const Value : TArray<T>) : TxArray<T>;
   end;
 
   TPair = record
@@ -192,6 +193,11 @@ begin
   Result := Value.fArray;
 end;
 
+class operator TXArray<T>.Implicit(const Value: TArray<T>): TxArray<T>;
+begin
+  Result.fArray := Value;
+end;
+
 
 { TXArray<T>.TEnumerator }