[fpc-pascal] Feature "Multiline strings" added
DougC
doug at moosemail.net
Mon Jul 28 16:53:06 CEST 2025
Actually, in Pascal (* and *) came before { }. But this is quite off topic for this thread, so let's leave it.
Doug C.
---- On Mon, 28 Jul 2025 10:41:31 -0400 Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote ---
On Jul 28, 2025 at 8:24:38 AM, Brian via fpc-pascal < mailto:fpc-pascal at lists.freepascal.org > wrote:
The two ways to do comments are, IMO, almost essential. The way I was
taught to write Pascal, about 45 years ago now, was to use braces for
comments - but then if you needed to comment out a whole chunk of
code, including multiple comments, you used (* and *) to do it.
I think this is historical baggage from {} not being able to nest within each other. There’s no technical reason why {} can’t nest but instead of changing that a new comment was introduced. Seems redundant to me now looking back.
Regards,
Ryan Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250728/6cb296ab/attachment.htm>
More information about the fpc-pascal
mailing list