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
H2Pas can't handle EXP CA...
by
Zvoni
[
Today
at 10:28:37 am]
CADSys4 3D.
by
zamtmn
[
Today
at 09:58:22 am]
const declaration
by
Thaddy
[
Today
at 09:45:14 am]
TImage colors incorrect
by
Thaddy
[
Today
at 09:26:22 am]
Any RequestOpenDirectory ...
by
eolandro
[
Today
at 08:50:30 am]
Add additional Components...
by
cdbc
[
Today
at 07:03:25 am]
Creating a SDL child wind...
by
TRon
[
Today
at 06:17:08 am]
String replace or add ' ...
by
Thaddy
[
Today
at 06:14:41 am]
File operations blocking ...
by
atlatl
[
Today
at 05:44:51 am]
Nested declarations insid...
by
440bx
[
Today
at 04:26:28 am]
[solved] triple click
by
dbannon
[
Today
at 01:46:22 am]
SDL2 image rotation Probl...
by
Fred vS
[
Today
at 01:13:15 am]
SetPart ?
by
BubikolRamios
[January 15, 2025, 11:32:19 pm]
TRichMemo High Lighted te...
by
What I can do
[January 15, 2025, 11:20:37 pm]
Lazarus/FPC Flatpak appli...
by
Chronos
[January 15, 2025, 09:56:54 pm]
The mouse and using ptcgr...
by
TBMan
[January 15, 2025, 09:15:40 pm]
SDL2: Runtime Error 216 o...
by
TRon
[January 15, 2025, 07:44:59 pm]
Iterator on non-existing ...
by
Warfley
[January 15, 2025, 05:45:03 pm]
Batch "publish" of all pr...
by
MarkMLl
[January 15, 2025, 05:42:45 pm]
[solved] Setting the init...
by
TBMan
[January 15, 2025, 04:28:08 pm]
MQTT Client
by
cdbc
[January 15, 2025, 03:06:25 pm]
Issue getting and setting...
by
d7_2_laz
[January 15, 2025, 02:28:48 pm]
Problem with cell comment
by
kjteng
[January 15, 2025, 02:17:57 pm]
[SOLVED]Troubles when con...
by
bytebites
[January 15, 2025, 01:15:16 pm]
FP crashes after running ...
by
marcov
[January 15, 2025, 10:06:01 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [CLOSED] Improvement of Destructor TComponent.Destroy; (Read 1330 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: 2519
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: 2519
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