mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 03:11:39 +01:00 
			
		
		
		
	* method pointers are now passed by value, fixes #5736
git-svn-id: trunk@3691 -
This commit is contained in:
		
							parent
							
								
									02db8f5c84
								
							
						
					
					
						commit
						86d9e04409
					
				| @ -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; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 florian
						florian