Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
How to omit ^ in pointer using?
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
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] Problem to resto...
by
Hartmut
[
Today
at 06:42:28 pm]
Debian removes FPC/Lazaru...
by
Martin_fr
[
Today
at 06:41:38 pm]
Text Fill (Memo)
by
Sc0li0sis
[
Today
at 06:08:54 pm]
BGRA Controls license inf...
by
Zoran
[
Today
at 05:48:27 pm]
TCalendar Assign a Date
by
eldonfsr
[
Today
at 05:04:10 pm]
How many lines is too man...
by
Martin_fr
[
Today
at 04:57:47 pm]
Update a table with an Au...
by
wp
[
Today
at 04:16:29 pm]
[Feature Request]Add Larg...
by
TYDQ
[
Today
at 03:03:31 pm]
Receipt printers & lazare...
by
Petrus Vorster
[
Today
at 02:36:22 pm]
STOMP Clients Release 202...
by
mjustin
[
Today
at 01:56:25 pm]
FreePascal/Lazarus docume...
by
MarkMLl
[
Today
at 10:03:46 am]
PasLLM - LLM Inference En...
by
domasz
[
Today
at 08:53:15 am]
Variable initialization
by
440bx
[
Today
at 05:17:47 am]
Lazarus IDE built for LCL...
by
dbannon
[March 05, 2026, 11:52:07 pm]
Should TEdit.Clear cause ...
by
Bart
[March 05, 2026, 10:07:40 pm]
Reset doesn't open ReadOn...
by
eny
[March 05, 2026, 09:29:24 pm]
unit ProjectDescriptorTyp...
by
n7800
[March 05, 2026, 09:27:11 pm]
Interface problem
by
PascalDragon
[March 05, 2026, 09:22:57 pm]
bgraformatui.pas(26,12) W...
by
PascalDragon
[March 05, 2026, 09:05:02 pm]
FPC says file exists, Laz...
by
cdbc
[March 05, 2026, 05:06:05 pm]
Lazarus Bugfix Release 4....
by
uganof
[March 05, 2026, 03:04:05 pm]
Add Help to an Applicatio...
by
1HuntnMan
[March 05, 2026, 02:41:40 pm]
composition instead of in...
by
BildatBoffin
[March 05, 2026, 01:16:31 pm]
Is it me or is there some...
by
jamie
[March 05, 2026, 12:03:37 pm]
Lazarus 4.x - ZeosdBo
by
essence-ciel
[March 05, 2026, 08:29:57 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to omit ^ in pointer using? (Read 2281 times)
patman
New member
Posts: 7
How to omit ^ in pointer using?
«
on:
March 13, 2015, 02:06:33 pm »
Is it possible to omit pointer sign ^ when variable refer to record's item, like it works in Delphi?
I would like to achieve something like this
Code:
[Select]
myPointerToRecord.someData := 'sth'
instead of
Code:
[Select]
myPointerToRecord^.someData := 'sth';
Logged
marcov
Administrator
Hero Member
Posts: 12706
FPC developer.
Re: How to omit ^ in pointer using?
«
Reply #1 on:
March 13, 2015, 02:15:32 pm »
Generally that should work fine in Delphi mode ? {$mode delphi}
Logged
patman
New member
Posts: 7
Re: How to omit ^ in pointer using?
«
Reply #2 on:
March 13, 2015, 02:25:40 pm »
Many thanks, it works.
Logged
Basile B.
Guest
Re: How to omit ^ in pointer using?
«
Reply #3 on:
March 13, 2015, 03:14:55 pm »
Additionally if you don't want all the
{$MODE DELPHI}
features you can override a particular compiler switch of the mode, in your case:
{$MODESWITCH AUTODEREF}
, as described here:
http://www.freepascal.org/docs-html/prog/progsu106.html#x114-1150001.3.23
«
Last Edit: March 15, 2015, 12:40:00 pm by Basile B.
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
How to omit ^ in pointer using?
TinyPortal
© 2005-2018