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
Fpcupdeluxe
by
petex
[
Today
at 11:32:09 am]
IsNan
by
BubikolRamios
[
Today
at 11:21:29 am]
Custom self drawn compone...
by
Josh
[
Today
at 11:17:09 am]
Search in Watches window.
by
Hansvb
[
Today
at 10:36:23 am]
missed warning
by
Paolo
[
Today
at 10:33:57 am]
Lazarus editor feature re...
by
JuhaManninen
[
Today
at 10:12:29 am]
align a panel alClient in...
by
Hansvb
[
Today
at 09:45:04 am]
Transparent animation
by
majolika
[
Today
at 08:33:18 am]
Tesseract for ocr
by
Packs
[
Today
at 06:05:30 am]
FLIF and FUIF Formats (Fr...
by
hukka
[
Today
at 05:34:30 am]
Pathfinding (A*)
by
d2010
[
Today
at 05:21:25 am]
Unselect all rows in stri...
by
Jonny
[
Today
at 02:16:49 am]
Magic Cropper (correct pe...
by
Boleeman
[
Today
at 01:41:08 am]
Treeview: full-width back...
by
d7_2_laz
[
Today
at 12:41:34 am]
BUG in InputQuery if defa...
by
dsiders
[
Today
at 12:38:49 am]
NTSC/CRT port for Free Pa...
by
hukka
[
Today
at 12:35:52 am]
Where is Spready?
by
Curt Carpenter
[February 07, 2025, 11:57:51 pm]
N-Bit Dotted Line Pattern...
by
Boleeman
[February 07, 2025, 11:53:47 pm]
my programs crash
by
turunk
[February 07, 2025, 11:22:37 pm]
Oberon Pi, a port of Ober...
by
McDoob
[February 07, 2025, 11:21:36 pm]
fpc trunk:I can't build i...
by
wcage03
[February 07, 2025, 10:26:40 pm]
LAMW manager out of date?
by
jmpessoa
[February 07, 2025, 09:25:57 pm]
ZBarcodeView
by
jmpessoa
[February 07, 2025, 09:19:24 pm]
Compile App Error
by
jmpessoa
[February 07, 2025, 09:15:32 pm]
Error on LAMW application...
by
jmpessoa
[February 07, 2025, 09:13:08 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [CLOSED] Improvement of Destructor TComponent.Destroy; (Read 1345 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: 2525
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: 2525
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: 8785
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