Browse Source

* Patch from Mattias Gaertner:
- external vars
- untyped parameters
- varargs
- SetLength(s,len) is now converted to s.length=len
- destructor now clears references
- dynamic arrays now are never null.
- anArr:=nil becomes anArr = []
- anArr=nil becomes anArr.length==0
- passing nil to an array parameter passes []
- length(anArr) becomes anArr.length
- High(anArr) becomes anArr.length-1
- sets now uses references when assigning and passing to a parameter.
Far less clone operations.

git-svn-id: trunk@35504 -

michael 8 years ago
parent
commit
0b42e226f8
2 changed files with 702 additions and 269 deletions
  1. 311 202
      packages/pastojs/src/fppas2js.pp
  2. 391 67
      packages/pastojs/tests/tcmodules.pas

File diff suppressed because it is too large
+ 311 - 202
packages/pastojs/src/fppas2js.pp


File diff suppressed because it is too large
+ 391 - 67
packages/pastojs/tests/tcmodules.pas


Some files were not shown because too many files changed in this diff