Interface support?

edited 3:03PM in FastScript
Hello,

FastScript looks great... Does it support interface definitions?

IUser = interface
function GetName: string;
function GetAge: integer;

procedure SetName(const Value: string);
procedure SetAge(const Value: integer);

property Name: string read GetName write SetName;
property Age: integer read GetAge write SetAge;
end;

TUser = class(TInterfacedObject, IUser);
....



Now i only want to register the interface with it??s funtions but not the class. Is this possible?

Best regards
Sebastian

Comments

  • edited January 2010
    i know this question is very old but, has FastScript a support for Interfaces? example how?

    I don't want to set you under pressure, but i need this information before 15th of January (20 % discount).

    Thanks

    =[EDIT]=
    Yes, it works...

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.