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
Looking For Lazarus Tutor...
by
MrPink
[
Today
at 10:00:08 pm]
Fatal: Cannot find Contro...
by
Soner
[
Today
at 09:58:44 pm]
Restoring minimized scree...
by
Soner
[
Today
at 09:41:16 pm]
[SOLVED] SetPart ?
by
BubikolRamios
[
Today
at 08:51:31 pm]
[SOLVED] Operators overri...
by
ackarwow
[
Today
at 07:55:54 pm]
Programs writing programs...
by
MarkMLl
[
Today
at 07:50:40 pm]
How to add new methods to...
by
jmpessoa
[
Today
at 07:27:22 pm]
FPC 3.2.4, naming suggest...
by
ALLIGATOR
[
Today
at 07:16:55 pm]
A Tip for beginners
by
tetrastes
[
Today
at 06:11:05 pm]
Preparing FPC 3.2.4, poin...
by
Fred vS
[
Today
at 06:09:48 pm]
TSelectDirectoryDialog do...
by
krzynio
[
Today
at 05:57:40 pm]
Iterator on non-existing ...
by
PascalDragon
[
Today
at 05:08:52 pm]
const declaration
by
PascalDragon
[
Today
at 05:05:55 pm]
How to avoid copying
by
PascalDragon
[
Today
at 05:02:08 pm]
Nested declarations insid...
by
PascalDragon
[
Today
at 04:57:51 pm]
Artificial intelligence
by
Martin_fr
[
Today
at 04:40:58 pm]
TImage colors incorrect
by
Jonny
[
Today
at 04:17:53 pm]
An interprocess network?
by
cdbc
[
Today
at 03:10:31 pm]
INET TLUDPcomponent for i...
by
cdbc
[
Today
at 03:08:38 pm]
Bug in the formula MATCH,...
by
veb86
[
Today
at 02:40:23 pm]
Bug in the formula MATCH
by
veb86
[
Today
at 02:21:09 pm]
Strange form designer beh...
by
Martin_fr
[
Today
at 02:16:51 pm]
Sutcliffe Fractal: Found ...
by
Boleeman
[
Today
at 01:07:01 pm]
UK's Online Safety Act
by
dbannon
[
Today
at 12:31:54 pm]
Problem in writing formul...
by
veb86
[
Today
at 12:12:00 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 1940 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