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
TRon
[
Today
at 04:35:07 pm]
/lib/x86_64-linux-gnu/lib...
by
robert rozee
[
Today
at 04:31:04 pm]
how to find application r...
by
Packs
[
Today
at 04:22:40 pm]
Lazarus Release 3.6
by
Fred vS
[
Today
at 03:23:01 pm]
Nested declarations insid...
by
Khrys
[
Today
at 03:00:49 pm]
CADSys4 3D.
by
mdadali
[
Today
at 02:53:57 pm]
Highlight comments starte...
by
cdbc
[
Today
at 02:40:55 pm]
Troubles when converting ...
by
CM630
[
Today
at 01:38:10 pm]
Color Buttons
by
lainz
[
Today
at 01:04:56 pm]
Repository mirror and Ind...
by
Marc
[
Today
at 12:27:48 pm]
Fpc Updates
by
loaded
[
Today
at 12:19:36 pm]
file Blockread error
by
Thaddy
[
Today
at 11:53:53 am]
how to create sync applic...
by
Packs
[
Today
at 11:11:36 am]
SDL2 image rotation Probl...
by
Pe3s
[
Today
at 10:19:23 am]
How to combine data from ...
by
Zvoni
[
Today
at 10:17:05 am]
[SOLVED]Might have a menu...
by
dbannon
[
Today
at 09:07:11 am]
Why with allows assignmen...
by
egsuh
[
Today
at 06:46:30 am]
test if web site is valid
by
Warfley
[
Today
at 01:22:48 am]
File operations blocking ...
by
TRon
[
Today
at 01:15:30 am]
[Solved] TPopupMenu OnDra...
by
d7_2_laz
[
Today
at 12:37:26 am]
how to make application r...
by
DragoRosso
[
Today
at 12:19:23 am]
Discussion: How do you di...
by
dbannon
[
Today
at 12:18:30 am]
Assigning proc to event a...
by
Bart
[January 13, 2025, 10:16:59 pm]
Lazarus Pascal Keywords a...
by
PascalDragon
[January 13, 2025, 09:11:42 pm]
Generics as PUBLISHED imp...
by
PascalDragon
[January 13, 2025, 09:04:43 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 1851 times)
ASerge
Hero Member
Posts: 2349
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: 1834
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