String interpolation (included): Difference between revisions
PascalABC.NET
m (→{{header|Phix}}: use pygments) |
(PascalABC.NET) |
||
Line 1,663:
<syntaxhighlight lang="parigp">s=Strprintf("The value was: %Ps", 1<<20);
printf("The value was: %Ps", 1<<20);</syntaxhighlight>
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
var extra := 'little';
var formatted := $'Mary has a {extra} lamb.';
Print(formatted);
</syntaxhighlight>
=={{header|Perl}}==
|