View Issue Details

IDProjectCategoryView StatusLast Update
0037759pas2jsrtlpublic2020-09-16 21:20
Reporterhenrique Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPas2JsOSWindows 
Fixed in Versiontrunk 
Summary0037759: Moved TArray
DescriptionI moved the TArray from the SysUtils unit to the System to maintain compatibility as Delphi.
TagsNo tags attached.
Fixed in Revision880
Attached Files

Activities

henrique

2020-09-16 21:09

reporter  

Moved.patch (1,332 bytes)   
From f0ef6487cdf25accdba325547a57e1c28593f508 Mon Sep 17 00:00:00 2001
From: Henrique Gottardi Werlang <henriquewerlang@hotmail.com>
Date: Wed, 16 Sep 2020 16:01:32 -0300
Subject: [PATCH] Movido o TArray para o System.

---
 packages/rtl/system.pas   | 2 ++
 packages/rtl/sysutils.pas | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/rtl/system.pas b/packages/rtl/system.pas
index 483dec4..7802b85 100644
--- a/packages/rtl/system.pas
+++ b/packages/rtl/system.pas
@@ -98,6 +98,8 @@ type
                     coLingCasing, coDigitAsNumbers, coStringSort});
   TCompareOptions = set of TCompareOption;
 
+  generic TArray<T> = array of T;
+
 {*****************************************************************************
             TObject, TClass, IUnknown, IInterface, TInterfacedObject
 *****************************************************************************}
diff --git a/packages/rtl/sysutils.pas b/packages/rtl/sysutils.pas
index aa20b15..692e051 100644
--- a/packages/rtl/sysutils.pas
+++ b/packages/rtl/sysutils.pas
@@ -655,8 +655,6 @@ Function EncodeHTMLEntities (S : String) : String;
   ---------------------------------------------------------------------}
 
 Type
-
-  generic TArray<T> = array of T;
   TCharArray = Array of char;
 
   TByteBitIndex = 0..7;
-- 
2.28.0.windows.1

Moved.patch (1,332 bytes)   

Michael Van Canneyt

2020-09-16 21:20

administrator   ~0125580

Checked and applied, thanks !

Issue History

Date Modified Username Field Change
2020-09-16 21:09 henrique New Issue
2020-09-16 21:09 henrique File Added: Moved.patch
2020-09-16 21:20 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-09-16 21:20 Michael Van Canneyt Status new => resolved
2020-09-16 21:20 Michael Van Canneyt Resolution open => fixed
2020-09-16 21:20 Michael Van Canneyt Fixed in Version => trunk
2020-09-16 21:20 Michael Van Canneyt Fixed in Revision => 880
2020-09-16 21:20 Michael Van Canneyt Note Added: 0125580