[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

Michael Van Canneyt michael at freepascal.org
Mon Jul 8 09:22:50 CEST 2019



On Mon, 8 Jul 2019, J. Gareth Moreton wrote:

> I'm a bit late to the party again, but the example of an OpenGL shader 
> has won me over, since game design is one thing I enjoy doing.  I guess 
> I'm still a bit unsure how leading and trailing whitespace should be 
> handled, but as long as it's well-documented, I think I'll be happy!
>
> Speaking of shaders, I would request the {$INCLUDESTRINGFILE} thing 
> alongside it, because things like shaders are programs in themselves and 
> may have to be tested in a third-party application, so including the 
> file directly rather than copying and pasting its contents would be much 
> safer if changes need to be made.

I think indeed the 2 (`` and directive) should co-exist.

I strongly believe code and text/data should be separate as much as possible. 
Some of the examples I see makes the hair in my neck crawl... :(

Michael.


More information about the fpc-devel mailing list