also ich habe mal nur um sicherzugehen das Testprogramm von assigned durchgespielt.
Code: Alles auswählen
procedure Example96;
{ Program to demonstrate the Assigned function. }
Var P : Pointer;
begin
WriteLn('begin');
If Not Assigned(P) then
Writeln ('Pointer is initially NIL')
else
WriteLn('wtf???');
If (P=nil) then
Writeln ('Pointer is initially NIL')
else
WriteLn('wtf???');
P:=@P;
If Not Assigned(P) then
Writeln('Internal inconsistency')
else
Writeln('All is well in FPC') ;
If (P=nil) then
Writeln('Internal inconsistency')
else
Writeln('All is well in FPC') ;
end;
Code: Alles auswählen
begin
wtf???
wtf???
All is well in FPC
All is well in FPC
Gruß
alexander
PS: Wenigstens ist =Nil und assigned konsistent.