* allow default parameters in equal_paras

This commit is contained in:
peter 2002-09-15 17:54:46 +00:00
parent 244a20c239
commit 007d85fa90

View File

@ -386,7 +386,11 @@ implementation
def1:=TParaItem(def1.next);
def2:=TParaItem(def2.next);
end;
if (def1=nil) and (def2=nil) then
{ when both lists are empty then the parameters are equal. Also
when one list is empty and the other has a parameter with default
value assigned then the parameters are also equal }
if ((def1=nil) and ((def2=nil) or assigned(def2.defaultvalue))) or
((def2=nil) and ((def1=nil) or assigned(def1.defaultvalue))) then
equal_paras:=true
else
equal_paras:=false;
@ -1949,7 +1953,10 @@ implementation
end.
{
$Log$
Revision 1.10 2002-09-08 11:10:17 carl
Revision 1.11 2002-09-15 17:54:46 peter
* allow default parameters in equal_paras
Revision 1.10 2002/09/08 11:10:17 carl
* bugfix 2109 (bad imho, but only way)
Revision 1.9 2002/09/07 15:25:02 peter