Sujet : Re: Use of { and } was Re: Back & Forth - Co-routines
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 02. Feb 2025, 11:08:19
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <77c2695f4f3285451b2692e8da9f2d58e1fdbd8b@i2pn2.org>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 2/02/2025 6:39 pm, Anton Ertl wrote:
dxf <dxforth@gmail.com> writes:
On 1/02/2025 11:14 pm, albert@spenarnc.xs4all.nl wrote:
{ } is used for comment in Pascal.
>
That's interesting. When did that come in, and why, given the issues?
Good question. My memory is only of (* *), but indeed Section 6.1.8
of https://www.standardpascal.org/iso7185.pdf makes it clear that (*
and { can be used interchangeably, as well as *) and }.
Looking at a several online manuals and tutorials the rules re mixing,
single/multiple lines, nesting etc they all seem to vary.
When a comments proposal (Jonah Thomas?) was made on c.l.f it quickly
ran into the weeds too :)