Re: Feature "Multiline strings" added

DougC via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
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 <[email protected]> wrote ---



On Jul 28, 2025 at 8:24:38 AM, Brian via fpc-pascal < mailto:[email protected] > 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

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.