Forum > Beginners

Immutable = Pointer?

(1/1)

noszone:
Hello,

I have a question. Is Immutable = Pointer? or Immutable = any variable in Pascal?

For instance:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---var a, b:integer;begina:=2;b:=a;  //Is b now pointed to a reference or | b now have it's own value copy?

marcov:
Value copy, since a and b are not pointers.

Navigation

[0] Message Index

Go to full version