Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
Why this code doesn't compile?
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
made hooking newinstance ...
by
ALLIGATOR
[
Today
at 06:03:32 am]
Interesting video
by
Curt Carpenter
[
Today
at 04:28:27 am]
Printer Info
by
rvk
[
Today
at 02:50:05 am]
how to add a ForEach call...
by
cdbc
[
Today
at 02:19:44 am]
Gitlab site history date.
by
Fred vS
[
Today
at 02:17:24 am]
Sizes and SizeInt
by
mas steindorff
[
Today
at 02:16:07 am]
I found an actual use for...
by
jamie
[June 09, 2026, 11:48:04 pm]
Lazarus Main and Gnome/Wa...
by
Jonax
[June 09, 2026, 09:02:10 pm]
[New Component] ExtTabCtr...
by
d7_2_laz
[June 09, 2026, 08:56:07 pm]
WEBP, no DLLs
by
Tomxe
[June 09, 2026, 07:40:17 pm]
MacOS post compilation sc...
by
marcou
[June 09, 2026, 07:30:07 pm]
water filling simulation
by
Dzandaa
[June 09, 2026, 06:53:35 pm]
XLibre, finally and fortu...
by
Thaddy
[June 09, 2026, 06:37:12 pm]
Pdf Viewer in Pascal
by
Tomxe
[June 09, 2026, 05:00:32 pm]
How can 'Canvas does not ...
by
J-G
[June 09, 2026, 03:05:01 pm]
AArch64. Fast method to c...
by
Thaddy
[June 09, 2026, 01:58:45 pm]
Strange Behaviour at Runt...
by
andrew Bubble
[June 09, 2026, 12:41:49 pm]
Can /my/ AI help me with ...
by
microxa
[June 09, 2026, 12:12:06 pm]
Knigo
by
CM630
[June 09, 2026, 12:05:31 pm]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[June 09, 2026, 11:27:35 am]
[solved] rotate image pro...
by
speter
[June 09, 2026, 10:03:42 am]
TstringGrid read cell col...
by
Josh
[June 08, 2026, 11:05:23 pm]
Pascal for AI Agent CLI T...
by
schuler
[June 08, 2026, 10:35:41 pm]
is there a Base 26 / Radi...
by
Josh
[June 08, 2026, 08:54:36 pm]
FPC Unleashed (inline var...
by
Fibonacci
[June 08, 2026, 08:49:31 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Why this code doesn't compile? (Read 1141 times)
1q5xaaqz
New Member
Posts: 30
Why this code doesn't compile?
«
on:
February 28, 2022, 05:55:30 pm »
{$macro on}
{$define TIMEOUT_INFINITE:= dword(-1)}
The error is fatal syntax error: "identifier" expected but found "-"
Logged
Thaddy
Hero Member
Posts: 19262
Glad to be alive.
Re: Why this code doesn't compile?
«
Reply #1 on:
February 28, 2022, 06:08:50 pm »
Code: Pascal
[Select]
[+]
[-]
{$macro on}
{$define TIMEOUT_INFINITE:= high(dword)}
begin
writeln
(
longint
(
TIMEOUT_INFINITE
)
)
;
// -1 if you back cast it and proof the macro is now correct.
end
.
«
Last Edit: February 28, 2022, 06:28:27 pm by Thaddy
»
Logged
objects are fine constructs. You can even initialize them with constructors.
1q5xaaqz
New Member
Posts: 30
Re: Why this code doesn't compile?
«
Reply #2 on:
February 28, 2022, 06:22:52 pm »
Thank you.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
Why this code doesn't compile?
TinyPortal
© 2005-2018