X
x900
Unregistered / Unconfirmed
GUEST, unregistred user!
这是从borland delphi论坛上看到的一个帖子,拿到这里来让富翁们讨论讨论!
原贴内容为在D7下运行下面的代码结果...0<-1竟然为true,why?
{$Align on}
{$Assertions on}
{$BoolEval off}
{$DebugInfo on}
{$ExtendedSyntax on}
{$Hints on}
{$IOChecks on}
{$LocalSymbols on}
{$LongStrings on}
{$MinEnumSize 1}
{$OverflowChecks on}
{$RangeChecks on}
{$SafeDivide off}
{$StackFrames off}
{$TypedAddress on}
{$VarStringChecks on}
{$Warnings on}
{$WriteableConst off}
{$Optimization off}
{$apptype console}
program Test;
procedure Sub( const A: array of string );
var
X: 0..MaxInt;
begin
X := 0;
writeln( X, ' ', high( A ), ' ', X <= high( A ) );
end;
begin
Sub( [] );
end.
原贴内容为在D7下运行下面的代码结果...0<-1竟然为true,why?
{$Align on}
{$Assertions on}
{$BoolEval off}
{$DebugInfo on}
{$ExtendedSyntax on}
{$Hints on}
{$IOChecks on}
{$LocalSymbols on}
{$LongStrings on}
{$MinEnumSize 1}
{$OverflowChecks on}
{$RangeChecks on}
{$SafeDivide off}
{$StackFrames off}
{$TypedAddress on}
{$VarStringChecks on}
{$Warnings on}
{$WriteableConst off}
{$Optimization off}
{$apptype console}
program Test;
procedure Sub( const A: array of string );
var
X: 0..MaxInt;
begin
X := 0;
writeln( X, ' ', high( A ), ' ', X <= high( A ) );
end;
begin
Sub( [] );
end.