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
Compiling 2 dependent pac...
by
Sergey Tkachenko
[
Today
at 05:30:45 pm]
[SOLVED] Application.Proc...
by
Martin_fr
[
Today
at 04:54:51 pm]
Timer difference in Linux...
by
marcov
[
Today
at 04:47:20 pm]
Looking For Lazarus Tutor...
by
NobleStar
[
Today
at 04:13:44 pm]
UK's Online Safety Act
by
MarkMLl
[
Today
at 04:09:03 pm]
Getting format error load...
by
n7800
[
Today
at 04:04:34 pm]
Exclude Jedi Code Formatt...
by
BrunoK
[
Today
at 03:36:23 pm]
Making sense of pparser, ...
by
JernejL
[
Today
at 03:16:26 pm]
No access to the wiki
by
Marc
[
Today
at 02:52:43 pm]
Return nil/null of data t...
by
DragoRosso
[
Today
at 02:50:36 pm]
Generic methods inside a ...
by
Zoran
[
Today
at 01:38:26 pm]
OPC client with Lazarus
by
Truffaldino
[
Today
at 01:18:34 pm]
TFPHttpClient timeout err...
by
geraldholdsworth
[
Today
at 01:11:21 pm]
debugging code for te ACS...
by
dseligo
[
Today
at 12:57:05 pm]
Fpcupdeluxe
by
folkeu08
[
Today
at 12:38:08 pm]
Painting on a control - 3...
by
majolika
[
Today
at 10:56:33 am]
مشكلة في dbgrid
by
Gebo
[
Today
at 10:41:39 am]
مشكلة في التقارير
by
Gebo
[
Today
at 10:37:06 am]
TRichMemo: Popup menu not...
by
CM630
[
Today
at 09:57:53 am]
Compile on multiple distr...
by
dodgebros
[
Today
at 05:44:44 am]
SDL3 Headers for FPC
by
Guva
[
Today
at 04:05:01 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]
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]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 2107 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: 1854
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