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
Round invalid FLT/ invali...
by
Thaddy
[
Today
at 04:36:50 pm]
crash db navigator with L...
by
jamie
[
Today
at 04:30:49 pm]
TStringGrid draw lines in...
by
Jonny
[
Today
at 04:30:24 pm]
DockedFormEditor trouble
by
majolika
[
Today
at 04:25:26 pm]
How to maximize window us...
by
TBMan
[
Today
at 04:13:21 pm]
How C++ class multiple in...
by
TYDQ
[
Today
at 04:08:05 pm]
[SOLVED] Operators overri...
by
PascalDragon
[
Today
at 04:03:30 pm]
Return nil/null of data t...
by
PascalDragon
[
Today
at 04:00:22 pm]
Copying records with dyna...
by
McDoob
[
Today
at 03:58:38 pm]
Result not being set in c...
by
PascalDragon
[
Today
at 03:56:46 pm]
[SOLVED] Defining custom ...
by
jamie
[
Today
at 03:46:55 pm]
C-library problem with in...
by
PascalDragon
[
Today
at 03:27:53 pm]
Guide Lines Behavior
by
PascalDragon
[
Today
at 03:11:51 pm]
Source Editor - Open Sour...
by
Martin_fr
[
Today
at 03:02:50 pm]
Understanding Constraints
by
majolika
[
Today
at 02:55:05 pm]
كيفية التحكم في مكون main...
by
Gebo
[
Today
at 02:12:27 pm]
مشكلة في استعلام sql
by
Gebo
[
Today
at 02:10:26 pm]
UK's Online Safety Act
by
MarkMLl
[
Today
at 01:49:13 pm]
Lazarus versions...
by
440bx
[
Today
at 11:35:00 am]
Virtual monitor on linux ...
by
MarkMLl
[
Today
at 11:24:29 am]
Lazarus Release Candidate...
by
n7800
[
Today
at 11:11:15 am]
align a panel alClient in...
by
Hansvb
[
Today
at 10:52:23 am]
Using Tesseract without i...
by
backprop
[
Today
at 10:35:44 am]
FPHTTPClient and SSL not ...
by
Thaddy
[
Today
at 10:01:43 am]
Trying to save an Animate...
by
circular
[
Today
at 09:13:10 am]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Adding interfaces to any class (tnx Warfley!) (Read 2331 times)
ASerge
Hero Member
Posts: 2362
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: 1856
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