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

Sven Barth pascaldragon at googlemail.com
Fri Jul 5 22:21:07 CEST 2019


Am 05.07.2019 um 19:36 schrieb Ben Grasset:
> On Fri, Jul 5, 2019 at 1:14 PM Ryan Joseph <genericptr at gmail.com 
> <mailto:genericptr at gmail.com>> wrote:
>
>     This may present a bit of problem then because you don't appear to
>     be able to opt-in to long strings just for constants. $h+ will
>     always be required for multi-line strings but I don’t want the
>     rest of my “string” types to turn into ansistrings. Is there any
>     solution to this?
>
>
> I don't think it's really true that you'll *always* need long strings 
> for multi-line stuff, however, if you're concerned about this in 
> general there is in fact a way to switch between {$H+} and {$H-}:
Right! I forgot that $H is a local directive, not a global one! 🤦‍♀️

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190705/d21343c0/attachment.html>


More information about the fpc-devel mailing list