Browse Source

pastojs: allow multi dim static arrays, but no cloning

git-svn-id: trunk@38546 -
Mattias Gaertner 7 years ago
parent
commit
574b1e62e9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/pastojs/src/fppas2js.pp

+ 2 - 1
packages/pastojs/src/fppas2js.pp

@@ -295,6 +295,7 @@ ToDos:
 - typecast longint(highprecint) -> value & $ffffffff
 - static arrays
   - a[] of record
+  - clone multi dim static array
 - RTTI
   - class property
   - type alias type
@@ -3433,7 +3434,7 @@ var
 begin
   l:=length(Arr.Ranges);
   if l=0 then exit(false);
-  if l>1 then exit(true);
+  if l>1 then exit(false ); // ToDo: return true when cloning multi dims is implemented
   ElType:=ResolveAliasType(Arr.ElType);
   if ElType is TPasArrayType then
     Result:=length(TPasArrayType(ElType).Ranges)>0