gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing parameters of type 'ARRAY[0..MAXINDEX] OF ElementType' to C


From: Benjamin Kowarsch
Subject: Re: Passing parameters of type 'ARRAY[0..MAXINDEX] OF ElementType' to C
Date: Tue, 30 Jan 2024 23:03:57 +0900



On Tue, 30 Jan 2024 at 22:55, Gaius Mulley wrote:

> void p ( char str[], unsigned argc );

just to confirm the prototype above is correct for gm2 (for both VAR and
non VAR open array parameters)

Gaius, how do you handle write access to a non-VAR open array parameter?

Do you copy the array into temporary local storage into the local variable section on the stack and put a pointer to that into the contents field of the unbounded record, or do you forbid write access altogether?

regards
benjamin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]