[fpc-devel] Using double quotes

vfclists . vfclists at gmail.com
Tue Mar 1 19:51:27 CET 2016


On 28 February 2016 at 09:48, Marcos Douglas <md at delfire.net> wrote:

> On Sat, Feb 27, 2016 at 3:06 PM, Sven Barth <pascaldragon at googlemail.com>
> wrote:
> > Mostly don't like, but also it introduces a ambiguity in the language
> > especially since you could use your proposed variant in a single line as
> > well.
> > I'd more prefer the $IncludeString directive for which there's still a
> patch
> > waiting in Mantis. With this the contents would be in separate file, thus
> > not only not cluttering the Pascal source, but also allowing the use of
> an
> > editor with syntax highlighting as in your example with the SQL.
>
> OK, $IncludeString directive sounds good. Thanks.
>
> Marcos Douglas
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>


The problem with $IncludeString is that it entails another level of
indirection when you want to understand the source, which in this case
happens to be text. After all the SQL used in a program happens to be part
of the source code which is meant to be read by humans, even if it is not
Pascal source. I don't know how difficult adjusting the compiler/syntax to
handle this case is, or how well it fits with Pascal, but inline text if
very useful and it is supported by a lot of languages, ie HEREDOC etc.

-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160301/9f556dfe/attachment.html>


More information about the fpc-devel mailing list