Literals/String: Difference between revisions
Content deleted Content added
→{{header|OCaml}}: verbatim strings |
Added Dyalect programming language |
||
Line 403: | Line 403: | ||
const s2 := 'first line'#13#10'second line'; // CR+LF in the middle |
const s2 := 'first line'#13#10'second line'; // CR+LF in the middle |
||
</lang> |
</lang> |
||
=={{header|Dyalect}}== |
|||
Strings is Dyalect are double quote delimited (and characters are single quote delimited). Both support escape codes: |
|||
<lang Dyalect>var c = '\u0020' //a character |
|||
var str = "A string\non several lines!\sAnd you can incorporate expressions: \(c)!"</lang> |
|||
Multiline strings are not currently supported. |
|||
=={{header|E}}== |
=={{header|E}}== |