Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Adding interfaces to any class (tnx Warfley!)
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
مشكلة في التقارير
by
Gebo
[
Today
at 10:37:06 am]
UK's Online Safety Act
by
Khrys
[
Today
at 10:36:36 am]
Return nil/null of data t...
by
Zvoni
[
Today
at 10:24:06 am]
TRichMemo: Popup menu not...
by
CM630
[
Today
at 09:57:53 am]
Getting format error load...
by
MISV
[
Today
at 08:42:52 am]
Generic methods inside a ...
by
Khrys
[
Today
at 07:13:28 am]
Compile on multiple distr...
by
dodgebros
[
Today
at 05:44:44 am]
Application.ProcessMessag...
by
440bx
[
Today
at 04:45:21 am]
SDL3 Headers for FPC
by
Guva
[
Today
at 04:05:01 am]
Painting on a control - 3...
by
lainz
[
Today
at 03:04:18 am]
Does unit recompilation r...
by
Fred vS
[
Today
at 02:34:42 am]
Resolving procedure symbo...
by
TCH
[
Today
at 01:04:13 am]
debugging code for te ACS...
by
dseligo
[January 22, 2025, 11:03:34 pm]
Run ffmpeg via TProcess
by
TRon
[January 22, 2025, 10:52:55 pm]
Lazarus Bugfix Release 3....
by
Martin_fr
[January 22, 2025, 10:41:06 pm]
Lazarus Release Candidate...
by
zeljko
[January 22, 2025, 09:56:24 pm]
Minor Q: HowTo use 'Debug...
by
d7_2_laz
[January 22, 2025, 09:40:14 pm]
How C++ class multiple in...
by
Thaddy
[January 22, 2025, 07:55:26 pm]
Mormot2 and websocket cli...
by
BlueIcaro
[January 22, 2025, 07:25:35 pm]
crash db navigator with L...
by
calm_sea
[January 22, 2025, 06:04:33 pm]
Три вопроса новичка: OnPa...
by
majolika
[January 22, 2025, 05:30:20 pm]
Preparing FPC 3.2.4, poin...
by
BSaidus
[January 22, 2025, 04:19:20 pm]
Permuted index for RTL an...
by
Thaddy
[January 22, 2025, 03:52:14 pm]
My first "tool" written w...
by
TBMan
[January 22, 2025, 03:11:42 pm]
Select cell in listview /...
by
Jonny
[January 22, 2025, 02:34:09 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 2083 times)
ASerge
Hero Member
Posts: 2356
Re: Adding interfaces to any class (tnx Warfley!)
«
Reply #15 on:
December 13, 2024, 03:05:29 pm »
Quote from: Warfley on December 13, 2024, 10:42:20 am
But how do you convert it back?
What for? If we have an object A, then convert it to B, then why back? Just use A.
Logged
Warfley
Hero Member
Posts: 1853
Re: Adding interfaces to any class (tnx Warfley!)
«
Reply #16 on:
December 13, 2024, 03:48:44 pm »
For example, you want to create the object, pass it to another object and get it back later. E.g. as transferral of ownership. Is not that uncommon.
Logged
GitHub:
https://github.com/Warfley
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Adding interfaces to any class (tnx Warfley!)
TinyPortal
© 2005-2018