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
Amount in words
by
Pe3s
[
Today
at 05:23:53 pm]
From Linux MX to Windows ...
by
pentilisea
[
Today
at 04:55:07 pm]
rtl/inc/objpas.inc proced...
by
BrunoK
[
Today
at 04:32:17 pm]
MDB: list all tables
by
Zvoni
[
Today
at 04:13:07 pm]
Crear dll en lazarus para...
by
Oscar82
[
Today
at 03:48:18 pm]
Dark Theme in my program?
by
d7_2_laz
[
Today
at 03:39:39 pm]
Error Firebird in Lazarus
by
rvk
[
Today
at 02:49:58 pm]
Problems installing devel...
by
MarkMLl
[
Today
at 12:37:22 pm]
Extended and XML Frames m...
by
matthius
[
Today
at 10:22:01 am]
How to have a generic enu...
by
CCRDude
[
Today
at 09:05:03 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Immutable = Pointer? (Read 242 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: 10569
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