September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import extensions.
|
||||
import extensions;
|
||||
|
||||
program =
|
||||
[
|
||||
var s := "little".
|
||||
console printLineFormatted("Mary had a {0} lamb.",s); readChar.
|
||||
].
|
||||
public program()
|
||||
{
|
||||
var s := "little";
|
||||
console.printLineFormatted("Mary had a {0} lamb.",s).readChar()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
<doc><h2>String interpolation, in Neko</h2>
|
||||
<p><a href="https://nekovm.org/doc/view/string/">NekoVM String Library</a></p>
|
||||
</doc>
|
||||
**/
|
||||
|
||||
var sprintf = $loader.loadprim("std@sprintf", 2)
|
||||
|
||||
$print(sprintf("Mary had a %s lamb\n", "little"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue