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
Compiling Linux project t...
by
dbannon
[
Today
at 01:47:22 am]
How to use html colors in...
by
voltag
[
Today
at 12:32:27 am]
crash with chartEditor de...
by
Muso
[
Today
at 12:32:21 am]
BGRA Controls
by
lainz
[
Today
at 12:24:01 am]
Iteration over string arr...
by
jamie
[April 18, 2021, 11:37:39 pm]
x64 vs x86 storing functi...
by
daobh
[April 18, 2021, 11:16:50 pm]
[SOLVED] To Free or not t...
by
marcov
[April 18, 2021, 11:05:20 pm]
adjusting client area to ...
by
jamie
[April 18, 2021, 10:34:36 pm]
Using a working delphi HI...
by
jamie
[April 18, 2021, 10:24:49 pm]
Bouncing balls with Phong...
by
Roland57
[April 18, 2021, 10:03:20 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Is it FGL unit error? (Read 802 times)
Alextp
Hero Member
Posts: 1274
[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: 4225
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: 9228
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: 1274
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: 4225
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: 1274
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