Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[CLOSED] Improvement of Destructor TComponent.Destroy;
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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus Release Candidate...
by
dbannon
[
Today
at 01:00:57 am]
Copying records with dyna...
by
McDoob
[
Today
at 12:28:29 am]
UK's Online Safety Act
by
Joanna from IRC
[
Today
at 12:22:44 am]
TDBEdit uneditable
by
korba812
[
Today
at 12:19:36 am]
constref and assembler x6...
by
ASerge
[January 24, 2025, 11:50:46 pm]
Synedit wordwrap
by
Martin_fr
[January 24, 2025, 10:26:36 pm]
application->terminate ma...
by
MarkMLl
[January 24, 2025, 09:42:14 pm]
Lazarus Bugfix Release 3....
by
Martin_fr
[January 24, 2025, 09:38:45 pm]
Drawing with psInsidefram...
by
Jonny
[January 24, 2025, 08:20:18 pm]
AVRPascal – free code edi...
by
ackarwow
[January 24, 2025, 07:49:52 pm]
Threads window (in Debug ...
by
erol
[January 24, 2025, 06:31:17 pm]
Help with tablayout.getti...
by
Narciso
[January 24, 2025, 05:29:43 pm]
مشكلة في التقارير
by
Gebo
[January 24, 2025, 05:25:14 pm]
Conditional variable defi...
by
TRon
[January 24, 2025, 04:50:00 pm]
Result not being set in c...
by
Thaddy
[January 24, 2025, 03:09:12 pm]
Problem with TTabControl
by
MISV
[January 24, 2025, 02:12:53 pm]
Getting format error load...
by
MISV
[January 24, 2025, 02:07:44 pm]
How C++ class multiple in...
by
Thaddy
[January 24, 2025, 01:39:03 pm]
Guide Lines Behavior
by
GerholdtSchnaps
[January 24, 2025, 01:35:16 pm]
Fpcupdeluxe
by
DonAlfredo
[January 24, 2025, 12:53:33 pm]
Return nil/null of data t...
by
Warfley
[January 24, 2025, 12:51:48 pm]
FPHTTPClient and SSL not ...
by
Thaddy
[January 24, 2025, 12:45:01 pm]
Painting on a control - 3...
by
majolika
[January 24, 2025, 11:06:26 am]
Amigo programming languag...
by
paxscript
[January 24, 2025, 10:05:39 am]
Exclude Jedi Code Formatt...
by
JuhaManninen
[January 24, 2025, 06:13:54 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [CLOSED] Improvement of Destructor TComponent.Destroy; (Read 1342 times)
lagprogramming
Sr. Member
Posts: 407
[CLOSED] Improvement of Destructor TComponent.Destroy;
«
on:
November 21, 2023, 11:12:15 am »
rtl/objpas/classes/compon.inc has Destructor TComponent.Destroy;
In order to exit a loop, the original code sets a zero value to variable "
I
".
A patch has been attached that changes the line "
I := 0;
" with "
Break;
", increasing code readability.
«
Last Edit: November 22, 2023, 05:28:54 pm by lagprogramming
»
Logged
AlexTP
Hero Member
Posts: 2521
Re: Improvement of Destructor TComponent.Destroy;
«
Reply #1 on:
November 21, 2023, 12:29:56 pm »
Reported to
https://gitlab.com/freepascal.org/fpc/source/-/issues/40535
Logged
CudaText editor
-
ATSynEdit
-
More from me
AlexTP
Hero Member
Posts: 2521
Re: Improvement of Destructor TComponent.Destroy;
«
Reply #2 on:
November 22, 2023, 07:09:22 am »
Declined at FPC bugtracker.
Logged
CudaText editor
-
ATSynEdit
-
More from me
Leledumbo
Hero Member
Posts: 8783
Programming + Glam Metal + Tae Kwon Do = Me
Re: Improvement of Destructor TComponent.Destroy;
«
Reply #3 on:
November 24, 2023, 05:49:54 am »
Quote from: AlexTP on November 22, 2023, 07:09:22 am
Declined at FPC bugtracker.
Expected. For those who live long enough with Pascal, break and continue are indeed not inline with Pascal spirit. Most if not all of my softwares don't use it and readability enhancement is subjective.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[CLOSED] Improvement of Destructor TComponent.Destroy;
TinyPortal
© 2005-2018