Bo Berglund via fpc-pascal schrieb am
Do., 13. Apr. 2023, 07:49:
> What is the use case for "out" compared to "var" when it seemingly is
> doing the
> same thing?
> Or is it exactly this:
> With "out" you get a pristine empty variable which you have to initialize
> if
> needed (setting its length
On Thu, 13 Apr 2023 00:06:16 +0200, Sven Barth via fpc-pascal
wrote:
>Bo Berglund via fpc-pascal schrieb am
>Mi., 12. Apr. 2023, 21:17:
>
>> Now my question:
>>
>> Since I am modifying the WArgs variable inside the BuildArgumentsArray
>> function and using its new content afterw
Bo Berglund via fpc-pascal schrieb am
Mi., 12. Apr. 2023, 21:17:
> Now my question:
>
> Since I am modifying the WArgs variable inside the BuildArgumentsArray
> function
> and using its new content afterwards in the WriteItem function I assumed
> that I
> had to use var as shown
Giuliano Colla via fpc-pascal schrieb am
Mi., 12. Apr. 2023, 22:54:
> Il 12/04/2023 21:17, Bo Berglund via fpc-pascal ha scritto:
>
> And if so, what is the rule for **when** to use var in function call argument
> lists for items that will be changed inside the called function and used
> afterwar
Il 12/04/2023 21:17, Bo Berglund via fpc-pascal ha scritto:
And if so, what is the rule for*when* to use var in function call argument
lists for items that will be changed inside the called function and used
afterwards?
Your Wargs is defined as an open array, i.e. its length is unknown at
comp
I am wondering how to deal with this var or not in function calls:
In a processing program where I am building the command arguments for a write
operation by analyzing incoming commands and splitting the data such that the
write can be fully done by executing a series of smaller write commands for