I tried to extend it to strings?, nope, fixed strings? nope, unless I am doing something wrong?
Variable length strings won't work with _MEM, as their position in memory is fluid and can move at any moment. If you're directly accessing a pointer to a variable length string, you need to be aware that you're playing Russian Roulette with your program. That memory can move between the time you get the _OFFSET for it, and the very next line when you try and use that _OFFSET to change/view it...
Fixed length strings should work just fine with _MEM, and it seems you've probably discovered a bug in the command. It'll need further testing and debugging, but unless Luke or Felippe knows some underlying reason I don't, we
should be able to do what you were trying to do with your code.
The way I'd normally do what you're trying to do is like so (and is probably why I've never encountered the glitch myself before):
_TITLE "Mem test for array copy" 'B+ 2019-09-06 DIM a
(1 TO 20), a1
(1 TO 20) AS STRING * 100 'cant do variable length strings , apparently not fixed strings either
sngArrCopy a(), bCopy()
FixStr100ArrCopy a1(), b1Copy()
SUB sngArrCopy
(A!
(), copyB!
())
Just don't forget to _MEMFREE when you're finished, or else you're introducing a memory leak in your program which will accumulate and eventually lead to crashing after enough calls/repetitions.