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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Old problem returns...
by
dbannon
[
Today
at 05:39:25 am]
Status of FPC 3.4.0 or FP...
by
dbannon
[
Today
at 05:29:55 am]
Fixing Lazarus 4.4 IDE la...
by
Curt Carpenter
[
Today
at 04:44:50 am]
Select rectangle of the i...
by
lainz
[
Today
at 02:11:34 am]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 01:54:33 am]
[ANN] fpGUI Toolkit v2.0....
by
Graeme
[
Today
at 01:38:54 am]
Strange Error in My Code ...
by
TYDQ
[
Today
at 01:17:35 am]
Fpcupdeluxe
by
creaothceann
[
Today
at 12:09:07 am]
The Future of FPC
by
LeP
[February 11, 2026, 11:38:33 pm]
; after then
by
440bx
[February 11, 2026, 10:29:20 pm]
Reverting to Old AnchorDo...
by
Curt Carpenter
[February 11, 2026, 10:22:34 pm]
Lazarus for Windows on aa...
by
Wallaby
[February 11, 2026, 10:21:41 pm]
Form designer on MAC: Des...
by
tk
[February 11, 2026, 09:29:44 pm]
Fast Canvas Library V1.05...
by
backprop
[February 11, 2026, 08:15:33 pm]
TRichMemo EM_FORMATRANGE ...
by
rvk
[February 11, 2026, 07:54:30 pm]
[SOLVED] Sort DBGrid
by
Hansvb
[February 11, 2026, 07:49:56 pm]
fpGUI Toolkit v2.0.1 has ...
by
Graeme
[February 11, 2026, 07:43:51 pm]
[SOLVED] Lazarus recompil...
by
Hartmut
[February 11, 2026, 06:00:38 pm]
Defining TDBDropDownCombo...
by
1HuntnMan
[February 11, 2026, 04:12:04 pm]
Rolling releases Lazarus[...
by
ALLIGATOR
[February 11, 2026, 03:28:46 pm]
How to determine the unkn...
by
CM630
[February 11, 2026, 03:10:40 pm]
[SOLVED] TaChart on MAC: ...
by
tk
[February 11, 2026, 03:02:08 pm]
DCPcrypt v2.0.6 — Cryptog...
by
cdbc
[February 11, 2026, 02:05:57 pm]
Free Pascal for a small e...
by
avra
[February 11, 2026, 02:03:26 pm]
ThorVG - test (lightweigh...
by
Boleeman
[February 11, 2026, 11:28:52 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [CLOSED] Improvement of Destructor TComponent.Destroy; (Read 1544 times)
lagprogramming
Sr. Member
Posts: 409
[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: 2673
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: 2673
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: 8835
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