[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.
Ryan Joseph
genericptr at gmail.com
Thu Jul 4 15:11:34 CEST 2019
> On Jul 4, 2019, at 1:31 AM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
>
> Even if one would say that the whitespace at the start of a line is discarded that wouldn't make everyone happy, cause then code like the example Ben showed in his mail from today wouldn't work:
If you need proper formatting and are not willing to have ugly indentation in code then long strings won’t work. However often white space doesn’t matter so it’s not a problem at all. Just because it’s not useful 100% of the time doesn’t mean it’s not useful at all.
==================
program test;
const
shader = '#version 150
in vec2 inPosition;
in vec2 inTexCoord;
in vec4 inColor;
in float inUVMap;
out vec2 vertexTexCoord;
out float vertexUVMap;
uniform mat4 fullTransform;
void main()
{
gl_Position = fullTransform * vec4(inPosition, 1, 1);
vertexTexCoord = inTexCoord;
vertexUVMap = inUVMap;
}';
sqlQuery = 'select
distribution_stop_information.unique_id_no as stop_unique_id_no
,distribution_line_items.unique_id_no as line_unique_id_no, stop_name
,stop_address,route_code AS RouteCode, customer_reference
,distribution_line_items.datetime_created, rma_number
from
distribution_stop_information
join distribution_line_items on distribution_line_items.unique_id_no = distribution_stop_information.unique_id_no
where
distribution_line_items.datetime_created > '2/22/2017' and customer_no = '91000'';
begin
end.
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list