About: Interface completion   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

A feature of the Delphi IDE that I learned about only recently is interface completion. Let's say you have got an interface declared like this: type IMyInterface = interface procedure MethodA; procedure MethodB; // lots of more methods procedure MethodZ; end; Now you want to write a class that implements this interface: type TMyClass = class(TInterfacedObject, IMyInterface) private // implementation of IMyInterface // here go all methods that implement IMyInterface end; To see this and other cool stuff in action, see Steve's demo

AttributesValues
rdfs:label
  • Interface completion
rdfs:comment
  • A feature of the Delphi IDE that I learned about only recently is interface completion. Let's say you have got an interface declared like this: type IMyInterface = interface procedure MethodA; procedure MethodB; // lots of more methods procedure MethodZ; end; Now you want to write a class that implements this interface: type TMyClass = class(TInterfacedObject, IMyInterface) private // implementation of IMyInterface // here go all methods that implement IMyInterface end; To see this and other cool stuff in action, see Steve's demo
dcterms:subject
abstract
  • A feature of the Delphi IDE that I learned about only recently is interface completion. Let's say you have got an interface declared like this: type IMyInterface = interface procedure MethodA; procedure MethodB; // lots of more methods procedure MethodZ; end; Now you want to write a class that implements this interface: type TMyClass = class(TInterfacedObject, IMyInterface) private // implementation of IMyInterface // here go all methods that implement IMyInterface end; How do you go about declaring all those methods? Up until recently I used copy and paste. This works fine if the interface declaration is in the same unit or at least in a unit to which you have got the source code, even though it is rather inconvenient. There is a much easier way: type TMyClass = class(TInterfacedObject, IMyInterface) private // implementation of IMyInterface end; Pressing ctrl space at the position marked above will give you a list of all methods the interface IMyInterface declares, written in red. You can now select all these methods with Shift-Down and press return. Voila, instant declaration. Now just press Control + Shift + C and you also have got an empty implementation. To see this and other cool stuff in action, see Steve's demo
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software