[fpc-devel] Using double quotes

Marcos Douglas md at delfire.net
Sat Feb 27 17:44:05 CET 2016


On Sat, Feb 27, 2016 at 6:38 AM, Mark Morgan Lloyd
<markMLl.fpc-devel at telemetry.co.uk> wrote:
> Marcos Douglas wrote:
>>
>> Is there any chance to implement in the compiler something link this?
>>
>> S := "
>>   insert into t (
>>     id, description
>>   ) values (
>>     1, 'foo'
>>   )
>> ";
>>
>> Did you see?
>
>
> No, I don't see. It looks like an ordinary string to me, except that you're
> allowing it to extend over multiple lines somewhat like a unix
> here-document.

Here are the differences:

This:
S := "
  insert into t (
    id, description
  ) values (
    1, 'foo'
  )
";

instead of this:
S :=
  'insert into t ( ' +
  '  id, description ' +
  ') values ( ' +
  '  1, ''foo'' ' +
  ')';


Marcos Douglas



More information about the fpc-devel mailing list