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
GR32 GR_Bindings problem
by
marcov
[
Today
at 01:46:06 pm]
Sorting stringgrid
by
PeterX
[
Today
at 01:38:34 pm]
Component text property i...
by
Josh
[
Today
at 01:38:28 pm]
Spaces are allowed here ?
by
440bx
[
Today
at 01:18:21 pm]
A Tip for beginners
by
silvercoder70
[
Today
at 01:15:01 pm]
Reading/writing Excel fil...
by
dmytro
[
Today
at 12:59:32 pm]
Artificial intelligence
by
Thaddy
[
Today
at 12:56:08 pm]
[Solved] Width of Project...
by
Wilko500
[
Today
at 12:42:21 pm]
Migrate vb.net to Lazarus...
by
Packs
[
Today
at 11:14:06 am]
[SOLVED] Component event ...
by
n7800
[
Today
at 07:04:52 am]
FPC 3.2.4, naming suggest...
by
dbannon
[
Today
at 06:31:58 am]
Amigo programming languag...
by
paxscript
[
Today
at 06:31:47 am]
What is a status of fpGUI...
by
Fred vS
[
Today
at 05:52:24 am]
SDL2 image rotation Probl...
by
TRon
[
Today
at 12:39:30 am]
Looking For Lazarus Tutor...
by
cdbc
[January 18, 2025, 10:32:29 pm]
Fatal: Cannot find Contro...
by
Soner
[January 18, 2025, 09:58:44 pm]
Restoring minimized scree...
by
Soner
[January 18, 2025, 09:41:16 pm]
[SOLVED] SetPart ?
by
BubikolRamios
[January 18, 2025, 08:51:31 pm]
[SOLVED] Operators overri...
by
ackarwow
[January 18, 2025, 07:55:54 pm]
Programs writing programs...
by
MarkMLl
[January 18, 2025, 07:50:40 pm]
How to add new methods to...
by
jmpessoa
[January 18, 2025, 07:27:22 pm]
Preparing FPC 3.2.4, poin...
by
Fred vS
[January 18, 2025, 06:09:48 pm]
TSelectDirectoryDialog do...
by
krzynio
[January 18, 2025, 05:57:40 pm]
Iterator on non-existing ...
by
PascalDragon
[January 18, 2025, 05:08:52 pm]
const declaration
by
PascalDragon
[January 18, 2025, 05:05:55 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 1948 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: 1850
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