* method pointers are now passed by value, fixes #5736

git-svn-id: trunk@3691 -
This commit is contained in:
florian 2006-05-27 08:52:05 +00:00
parent 02db8f5c84
commit 86d9e04409

View File

@ -132,10 +132,7 @@ unit cpupara;
else else
getparaloc:=LOC_REGISTER; getparaloc:=LOC_REGISTER;
procvardef: procvardef:
if (po_methodpointer in tprocvardef(p).procoptions) then getparaloc:=LOC_REGISTER;
getparaloc:=LOC_REFERENCE
else
getparaloc:=LOC_REGISTER;
filedef: filedef:
getparaloc:=LOC_REGISTER; getparaloc:=LOC_REGISTER;
arraydef: arraydef:
@ -180,8 +177,6 @@ unit cpupara;
result:=(tsetdef(def).settype<>smallset); result:=(tsetdef(def).settype<>smallset);
stringdef : stringdef :
result:=tstringdef(def).string_typ in [st_shortstring,st_longstring]; result:=tstringdef(def).string_typ in [st_shortstring,st_longstring];
procvardef :
result:=po_methodpointer in tprocvardef(def).procoptions;
end; end;
end; end;