[fpc-pascal] Untyped var params

Ryan Joseph ryan at thealchemistguild.com
Wed Jan 4 16:24:57 CET 2017


> On Jan 4, 2017, at 10:14 PM, Dmitry Boyarintsev <skalogryz.lists at gmail.com> wrote:
> 
> var
>   i: integer;
> begin
>   i:=5;
>   GetSometing(i)
> 

But how do you assign to “something" then if you don’t know the type? The param is “var” so shouldn’t I be able to assign to the param and return it back to the caller? In your example how could I return 5 to “i” inside GetSomething?

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list