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
const declaration
by
LV
[
Today
at 04:57:04 pm]
Iterator on non-existing ...
by
Martin_fr
[
Today
at 04:52:01 pm]
Batch "publish" of all pr...
by
n7800
[
Today
at 04:50:57 pm]
[solved] Setting the init...
by
TBMan
[
Today
at 04:28:08 pm]
TImage colors incorrect
by
Jonny
[
Today
at 04:16:44 pm]
MQTT Client
by
cdbc
[
Today
at 03:06:25 pm]
Issue getting and setting...
by
d7_2_laz
[
Today
at 02:28:48 pm]
Problem with cell comment
by
kjteng
[
Today
at 02:17:57 pm]
triple click
by
Tony Stone
[
Today
at 01:15:24 pm]
[SOLVED]Troubles when con...
by
bytebites
[
Today
at 01:15:16 pm]
SDL2 image rotation Probl...
by
Fred vS
[
Today
at 12:23:28 pm]
File operations blocking ...
by
cdbc
[
Today
at 12:22:16 pm]
SDL2: Runtime Error 216 o...
by
mischi
[
Today
at 12:13:23 pm]
H2Pas can't handle EXP CA...
by
Seenkao
[
Today
at 10:30:21 am]
FP crashes after running ...
by
marcov
[
Today
at 10:06:01 am]
Repository mirror and Ind...
by
Thaddy
[
Today
at 10:02:53 am]
how to find application r...
by
Packs
[
Today
at 06:51:05 am]
Nested declarations insid...
by
Thaddy
[
Today
at 06:00:28 am]
Hustle - A simple task ma...
by
Wesbat
[
Today
at 12:24:34 am]
VGM Player
by
Gigatron2
[
Today
at 12:03:16 am]
[SOLVED]Might have a menu...
by
Tony Stone
[January 14, 2025, 10:39:56 pm]
/lib/x86_64-linux-gnu/lib...
by
DonAlfredo
[January 14, 2025, 09:00:28 pm]
Out of memory / filter tw...
by
Thaddy
[January 14, 2025, 07:23:20 pm]
test if web site is valid
by
Thaddy
[January 14, 2025, 06:51:18 pm]
Quantize a PNG with TBgra...
by
circular
[January 14, 2025, 05:54:45 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 1887 times)
ASerge
Hero Member
Posts: 2351
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: 1841
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