|
@@ -77,7 +77,9 @@ type
|
|
end;
|
|
end;
|
|
|
|
|
|
{$IFDEF DELPHIRX102_UP}
|
|
{$IFDEF DELPHIRX102_UP}
|
|
|
|
+ {$M+}
|
|
TOptions = class;
|
|
TOptions = class;
|
|
|
|
+ {$M-}
|
|
|
|
|
|
TConfigureOptionsProc<T : TOptions> = reference to procedure(aOptions : T);
|
|
TConfigureOptionsProc<T : TOptions> = reference to procedure(aOptions : T);
|
|
{$ELSE}
|
|
{$ELSE}
|
|
@@ -89,6 +91,7 @@ type
|
|
procedure ValidateOptions;
|
|
procedure ValidateOptions;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+ {$M+}
|
|
TOptions = class(TInterfacedObject,IOptionsValidator)
|
|
TOptions = class(TInterfacedObject,IOptionsValidator)
|
|
private
|
|
private
|
|
fName : string;
|
|
fName : string;
|
|
@@ -106,6 +109,7 @@ type
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
procedure ValidateOptions;
|
|
procedure ValidateOptions;
|
|
end;
|
|
end;
|
|
|
|
+ {$M-}
|
|
|
|
|
|
TOptionsValidator = class(TInterfacedObject,IOptionsValidator)
|
|
TOptionsValidator = class(TInterfacedObject,IOptionsValidator)
|
|
private
|
|
private
|