Interface support?

edited 1:09AM 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