Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
Immutable = Pointer?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
CompareText improvement
by
edgarrod71
[
Today
at 05:13:12 am]
Cannot read excel 2 file
by
bpranoto
[
Today
at 03:32:48 am]
How to have a generic enu...
by
PascalDragon
[March 22, 2023, 11:07:46 pm]
WebLaz corrections
by
edgarrod71
[March 22, 2023, 10:54:41 pm]
An ASCII logo for Pascal ...
by
domasz
[March 22, 2023, 10:53:50 pm]
printing stuff
by
wp
[March 22, 2023, 10:35:51 pm]
Flickering with TCustomCo...
by
deadbeef
[March 22, 2023, 09:46:03 pm]
TGroupBox WMPaint ...
by
Espectr0
[March 22, 2023, 06:52:13 pm]
[SOLVED] Timer
by
Pe3s
[March 22, 2023, 06:30:34 pm]
Use of FreePascal package...
by
Thaddy
[March 22, 2023, 06:05:51 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Immutable = Pointer? (Read 248 times)
noszone
New Member
Posts: 46
Immutable = Pointer?
«
on:
February 09, 2023, 10:36:24 am »
Hello,
I have a question. Is Immutable = Pointer? or Immutable = any variable in Pascal?
For instance:
Code: Pascal
[Select]
[+]
[-]
var
a
,
b
:
integer
;
begin
a
:
=
2
;
b
:
=
a
;
//Is b now pointed to a reference or | b now have it's own value copy?
Logged
marcov
Administrator
Hero Member
Posts: 10576
FPC developer.
Re: Immutable = Pointer?
«
Reply #1 on:
February 09, 2023, 10:38:49 am »
Value copy, since a and b are not pointers.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
Immutable = Pointer?
TinyPortal
© 2005-2018