tranleduy2000 / pascalnide

Pascal Compiler for Android
91 stars 25 forks source link

[System unit] copy() doesn't work on dynamic array #11

Closed pakLebah closed 7 years ago

pakLebah commented 7 years ago

As issue #10 that I just reported, another issue I found is Pascal N-IDE's copy() function doesn't work on dynamic array. It only works on string, as shown by auto-completion hint/info. I think it's a miss on your part, I suppose.

Actually, in modern Pascal, copy() works both on string and dynamic array. As it does on Free Pascal, Delphi, or other modern Pascal compilers. I think you should upgrade your interpreter abilities so it's compatible with other Pascal compilers being widely used today.

Reference:

tranleduy2000 commented 7 years ago

I added copy dynamic array function. See commit https://github.com/tranleduy2000/pascalnide/commit/d294953e75c0a646983532e11b94a303ff0f4485