Recent

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

Schmitty2005

  • Jr. Member
  • **
  • Posts: 65
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: 19384
  • Glad to be alive.
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 »
objects are fine constructs. You can even initialize them with constructors.

cdbc

  • Hero Member
  • *****
  • Posts: 2848
    • 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/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

 

TinyPortal © 2005-2018