Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.44 KB | None | 0 0
  1. var
  2.   left,right,result:Array of Int32;
  3. begin
  4.   left := [1,2,3,4];
  5.   result := left;
  6.   right := [5,6,7];
  7.   Insert(right,result,length(result));
  8.  
  9.   WriteLn(result); //this works tho, as left is typed as "var Array of Int32"
  10. end.
  11.  
  12. //.... (this failes)
  13. //> right := [5,6,7];
  14. //> result:= [1,2,3,4] + arr2;
  15.  
  16. //.... (this works failes)
  17. //> right := [5,6,7];
  18. //> result:= TIntArray([1,2,3,4]) + arr2;
  19.  
  20. //where TIntArray = Array of Int32;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement