36 lines
561 B
Plaintext
36 lines
561 B
Plaintext
type MyClass = class
|
|
type UserType = class
|
|
end;
|
|
|
|
MyClass.init()
|
|
UserType.getName(): string;
|
|
function MyClass.setValue(val: integer = 123; a: stringa): AA;
|
|
begin
|
|
end
|
|
|
|
function Mycalss.Init();
|
|
begin
|
|
end;
|
|
|
|
obj.name;
|
|
user.profile.email;
|
|
data.items.count;
|
|
data.Func(a: abc; b: 2);
|
|
|
|
function f(); // 无参数
|
|
begin
|
|
{self.}abc;
|
|
end;
|
|
function f(a, b); // 参数无类型
|
|
begin
|
|
end;
|
|
function f(a: real; b: DD); // 参数有类型
|
|
function f(a: real; b): def; // 带返回类型
|
|
begin
|
|
end;
|
|
a ? b : c;
|
|
|
|
f();
|
|
f(a, b);
|
|
f(a: 1; b: 's');
|