Logo

Programming-Idioms

History of Idiom 48 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-21, 15:00:38

Version 9

2015-08-22, 21:33:49

Idiom #48 Multi-line string litteral

Assign to variable s a string litteral consisting in several lines of text

Idiom #48 Multi-line string litteral

Assign to variable s a string litteral consisting in several lines of text

Code
var 
  _s: String;
begin
  _s := 'one' + LineEnding + 'two' + LineEnding + 'three'
end.
Comments bubble
LineEnding is defined as a constant in FreePascal. It's implementation is platform dependant.