-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFluent1.dpr
38 lines (34 loc) · 1.12 KB
/
Fluent1.dpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
program Fluent1;
{$APPTYPE CONSOLE}
uses
U_fluent_intf in 'U_fluent_intf.pas',
TTest_intf in 'TTest_intf.pas',
TTest_obj in 'TTest_obj.pas',
TTest_rec in 'TTest_rec.pas';
begin
TTestIntfImp.MakeIntf
.FluentSetName('My name is bob').id.FluentSetAge(8)
.id
.FluentSetName('My name is tom').FluentSetAge(9)
.id
.FluentSetName('My name is peg').FluentSetAge(3)
.id;
var Obj := TTestObj.Create;
try
Obj.FluentSetName('My name is bob').id.FluentSetAge(8)
.id
.FluentSetName('My name is tom').FluentSetAge(9)
.id
.FluentSetName('My name is peg').FluentSetAge(3)
.id;
finally Obj.Free;
end;
var Rec : TRecObj;
Rec.FluentSetName('My name is bob').id.FluentSetAge(8)
.id
.FluentSetName('My name is tom').FluentSetAge(9)
.id
.FluentSetName('My name is peg').FluentSetAge(3)
.id;
Readln;
end.