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
a bug about FPC spurce
by
dsiders
[
Today
at 02:44:18 am]
Convert string with Key-V...
by
dseligo
[
Today
at 02:38:28 am]
[SOLVED] progress dialog ...
by
cdbc
[
Today
at 01:14:35 am]
How to get at files that ...
by
Martin_fr
[
Today
at 12:33:32 am]
Need help converting a C+...
by
jamie
[
Today
at 12:30:59 am]
TurboBird IBX
by
rvk
[December 07, 2025, 11:07:54 pm]
Lazarus Bugfix Release 4...
by
calebs
[December 07, 2025, 10:37:53 pm]
make cycle fails on macOS...
by
Thausand
[December 07, 2025, 10:05:00 pm]
Matching video to form
by
Thausand
[December 07, 2025, 09:48:04 pm]
[Solved] Need help with c...
by
Thausand
[December 07, 2025, 08:03:53 pm]
TTagEdit Component 1.2
by
JD
[December 07, 2025, 08:02:41 pm]
[SOLVED] Form OnTop not w...
by
Pe3s
[December 07, 2025, 07:32:12 pm]
Save record to BLOB Field
by
Sc0li0sis
[December 07, 2025, 07:31:24 pm]
$ifdef highlighting
by
440bx
[December 07, 2025, 07:09:02 pm]
Clipboard Formats
by
AlexTP
[December 07, 2025, 04:39:19 pm]
[BUG REPORT] Code explore...
by
Martin_fr
[December 07, 2025, 02:54:20 pm]
Qt6 / X11: problem with G...
by
paweld
[December 07, 2025, 02:44:07 pm]
Dumb Problems Contest!
by
Thaddy
[December 07, 2025, 02:41:59 pm]
Please ask about the valu...
by
zzzzzzz7
[December 07, 2025, 02:14:52 pm]
laz_xmlstreaming.pas fail...
by
Ryan J
[December 07, 2025, 01:00:52 pm]
Probleme installing Lazar...
by
DonAlfredo
[December 07, 2025, 09:05:41 am]
Wikipedia pollution
by
Thaddy
[December 07, 2025, 08:31:35 am]
How to register a windows...
by
Thaddy
[December 07, 2025, 08:24:15 am]
append new record to arra...
by
speter
[December 07, 2025, 12:46:02 am]
Corrupted strings
by
Aruna
[December 06, 2025, 08:25:44 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [CLOSED] Improvement of Destructor TComponent.Destroy; (Read 1504 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: 2651
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: 2651
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: 8833
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