Recent

Author Topic: Is it possible to Extract an Interface from a Class ?  (Read 906 times)

Schmitty2005

  • New Member
  • *
  • Posts: 41
Is it possible to Extract an Interface from a Class ?
« on: July 31, 2025, 05:26:50 am »
I am trying to quickly make an Interface from an existing class.   Is that possible in Lazarus ? Delphi has 'Extract Interface'.  I could not easily find the equivalent if Lazarus 4.2 has it. 

Suggestions ?  Add-on ?
 

Thaddy

  • Hero Member
  • *****
  • Posts: 18324
  • Here stood a man who saw the Elbe and jumped it.
Re: Is it possible to Extract an Interface from a Class ?
« Reply #1 on: July 31, 2025, 06:01:31 am »
Ahum.... I use Delphi for that... ssshhh. :-X :-X
I am not aware the Lazarus already supports this, although it may be in codetools somewhere.
« Last Edit: July 31, 2025, 06:50:00 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

cdbc

  • Hero Member
  • *****
  • Posts: 2464
    • http://www.cdbc.dk
Re: Is it possible to Extract an Interface from a Class ?
« Reply #2 on: July 31, 2025, 08:38:51 am »
Hi
Lazarus' equivalent is called "Manual Labour"  :D
I know, 'cause I've done a few -- 'IStringList' & 'IStreams' ...and to some extent 'IContainers'  ;) They've all got their own thread here in the forum, so you can just search...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6 -> FPC 3.2.2 -> Lazarus 4.0 up until Jan 2025 from then on it's both above &: KDE6/QT6 -> FPC 3.3.1 -> Lazarus 4.99

 

TinyPortal © 2005-2018