> The Assembler shows that @lib and @lib[0] are exactly same thing.

The following program shows that they are NOT the same

#!/usr/bin/instantfpc
var
  a1: array of Integer;
begin
  setlength(a1,1);
  writeln(ptruint(@a1));
  writeln(ptruint(@a1[0]));
end.

output:
$ chmod +x test.pas
$ ./test.pas
134651632
3077795880



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-SEGFAULT-difference-between-pointer-and-dynarray-tp4028296p4028303.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to