Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
[Solved] Is it FGL unit error?
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
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
Actioning an IPRo hot lin...
by
QEnnay
[
Today
at 12:49:58 am]
How to bold some characte...
by
wp
[
Today
at 12:36:50 am]
can writeln's output be d...
by
440bx
[
Today
at 12:30:39 am]
How to speed up writing o...
by
wp
[
Today
at 12:22:25 am]
MOVED: can writeln's outp...
by
trev
[
Today
at 12:16:54 am]
MOVED: freepascal: Is it ...
by
trev
[
Today
at 12:14:50 am]
freepascal: Is it possibl...
by
ASBzone
[
Today
at 12:10:28 am]
Q: method replacement for...
by
d7_2_laz
[April 13, 2021, 11:53:50 pm]
Floating point precision ...
by
tygraphics
[April 13, 2021, 10:22:49 pm]
Fpcupdeluxe
by
DonAlfredo
[April 13, 2021, 09:57:44 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Is it FGL unit error? (Read 783 times)
Alextp
Hero Member
Posts: 1270
[Solved] Is it FGL unit error?
«
on:
March 04, 2021, 07:21:34 pm »
https://github.com/graemeg/freepascal/blob/master/rtl/objpas/fgl.pp
Code: Pascal
[Select]
[+]
[-]
class
function
TFPGList
.
ItemIsManaged
:
Boolean
;
begin
{$IFNDEF VER3_0}
Result
:
=
IsManagedType
(
T
)
;
{$ELSE}
Result
:
=
True
;
// Fallback to old behaviour
{$ENDIF}
end
;
Here IsManagedType is called for older FPC before 3.0? is it correct?
«
Last Edit: March 04, 2021, 10:13:53 pm by Alextp
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
Bart
Hero Member
Posts: 4220
Re: Is it FGL unit error?
«
Reply #1 on:
March 04, 2021, 08:54:23 pm »
Weel, since pre-3.0 is not supported anymore, this is OK.
It simply won't compile in 2.x.
Bart
Logged
marcov
Global Moderator
Hero Member
Posts: 9205
FPC developer.
Re: Is it FGL unit error?
«
Reply #2 on:
March 04, 2021, 09:02:34 pm »
I wonder about the use of this if it is virtual method anyway
Logged
Alextp
Hero Member
Posts: 1270
Re: Is it FGL unit error?
«
Reply #3 on:
March 04, 2021, 09:12:04 pm »
Don't we need to use
Result:=IsManagedType(T);
for 3.2 and 3.3? Now it's failed to do so.
Logged
CudaText editor
-
ATSynEdit
-
More from me
Bart
Hero Member
Posts: 4220
Re: Is it FGL unit error?
«
Reply #4 on:
March 04, 2021, 09:40:41 pm »
ver3_0 is not defined for 3.2 I would guess, so it would indeed use IsManagedType?
Bart
Logged
Alextp
Hero Member
Posts: 1270
Re: Is it FGL unit error?
«
Reply #5 on:
March 04, 2021, 10:13:41 pm »
Sorry, my bad, It's OK.
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
[Solved] Is it FGL unit error?
TinyPortal
© 2005-2018