[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Status of FORWARD
From: |
Gaius Mulley |
Subject: |
Re: Status of FORWARD |
Date: |
Mon, 03 Jun 2024 14:42:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
john o goyo <jog37@riddermarkfarm.ca> writes:
> Greetings, Michael.
>
> On 2024-06-01 10:30, Michael Riedl wrote:
>> John,
>>
>> thanks for pointing to that - in my view having FORWARD declarations
>> would be appreciated to ensure portability - but also no "must
>> have".
>>
>> Gruß
>>
>> Michael
>
> To my surprise, I discovered that FORWARD is specified in
> Sect. 6.2.11.1 Proper Procedure Declarations of ISO/IEC 10514-1:
>
> A proper procedure declaration consists of a proper procedure heading,
> which declares the procedure identifier and the formal parameters,
> followed by the keyword FORWARDin the case of a forward procedure
> declaration, or followed by a proper procedure block in the case of a
> full procedure declaration.
> [...]
>
> Concrete Syntax
>
> proper procedure declaration =
> proper procedure heading, semicolon,
> ( proper procedure block, procedure identifier | "FORWARD" ) ;
>
> procedure identifier = identifier ;
>
>
> Function procedure declarations are in Sect. 6.2.11.2 and also specify
> FORWARD.
>
> Gaius, your thoughts please.
Hi John and Michael,
I'll add the FORWARD keyword (as it is part of the language). It is
easy enough to do and it can be a procedure checking nop in gm2,
I'll add a PR so that we can track its progress,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115328
regards,
Gaius