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
Memory Safety and Object ...
by
BlueIcaro
[
Today
at 04:07:49 pm]
Random ?
by
Zoran
[
Today
at 04:07:37 pm]
Spaces are allowed here ?
by
Thaddy
[
Today
at 04:06:29 pm]
[Solved] A Tip for beginn...
by
Ten_Mile_Hike
[
Today
at 03:55:00 pm]
Error 403 downloading wit...
by
Thaddy
[
Today
at 03:09:31 pm]
API on intranet - auth im...
by
MarkMLl
[
Today
at 02:17:27 pm]
Making sense of pparser, ...
by
Thaddy
[
Today
at 01:09:44 pm]
مشكلة في التقارير
by
nouzi
[
Today
at 12:47:27 pm]
Artificial intelligence
by
MarkMLl
[
Today
at 12:31:46 pm]
[SOLVED] Treeview flicker...
by
d7_2_laz
[
Today
at 12:13:44 pm]
No access to the wiki
by
dseligo
[
Today
at 12:01:01 pm]
UK's Online Safety Act
by
Joanna from IRC
[
Today
at 11:37:49 am]
SQL update statement and ...
by
Zvoni
[
Today
at 11:03:07 am]
D2Bridge Framework for La...
by
nummer8
[
Today
at 09:53:00 am]
Preparing FPC 3.2.4, poin...
by
AlexTP
[
Today
at 09:25:09 am]
IContainers
by
cdbc
[
Today
at 08:36:34 am]
Using Tesseract without i...
by
Thaddy
[
Today
at 07:41:06 am]
GR32 GR_Bindings problem
by
staratel20
[
Today
at 12:50:04 am]
built IDE for qt5
by
HotShoe
[
Today
at 12:37:22 am]
Nested declarations insid...
by
Joanna from IRC
[
Today
at 12:29:42 am]
Install OOPsie
by
johnsg
[January 19, 2025, 10:48:06 pm]
Lazarus Release Candidate...
by
baldzhang
[January 19, 2025, 05:53:07 pm]
const declaration
by
marcov
[January 19, 2025, 04:51:08 pm]
Migrate vb.net to Lazarus...
by
gidesa
[January 19, 2025, 02:50:02 pm]
Amigo programming languag...
by
maurog
[January 19, 2025, 02:47:35 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 1952 times)
ASerge
Hero Member
Posts: 2352
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: 1852
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