Literals/String: Difference between revisions

Added Delphi example
(→‎{{header|Pike}}: Added hash-quoted string; changed comments to //)
(Added Delphi example)
Line 202:
<lang d>// assigns value 'hello' to str
auto str = x"68 65 6c 6c 6f";</lang>
 
=={{header|Delphi}}==
<lang Delphi>var
lChar: Char;
lLine: string;
lMultiLine: string;
begin
lChar := 'a';
lLine := 'some text';
lMultiLine := 'some text' + #13#10 + 'on two lines';</lang>
 
=={{header|E}}==
Anonymous user