mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-10 21:58:48 +01:00
Deploy to GitHub Pages:
This commit is contained in:
@ -138,7 +138,7 @@ static void loadModuleComplete(WrenVM* vm,
|
||||
{
|
||||
if(result.source) {
|
||||
//for example, if we used malloc to allocate
|
||||
our source string, we use free to release it.
|
||||
//our source string, we use free to release it.
|
||||
free((void*)result.source);
|
||||
}
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@
|
||||
<p>Removes all elements from the list.</p>
|
||||
<h3><strong>count</strong> <a href="#count" name="count" class="header-anchor">#</a></h3>
|
||||
<p>The number of elements in the list.</p>
|
||||
<h3><strong>indexOf(value)</strong> <a href="#indexof(value)" name="indexof(value)" class="header-anchor">#</a></h3>
|
||||
<h3><strong>indexOf</strong>(value) <a href="#indexof(value)" name="indexof(value)" class="header-anchor">#</a></h3>
|
||||
<p>Returns the index of <code>value</code> in the list, if found. If not found, returns -1.</p>
|
||||
<pre class="snippet">
|
||||
var list = [0, 1, 2, 3, 4]
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
<code>Num</code>. If the number cannot be parsed <code>null</code> will be returned.</p>
|
||||
<p>It is a runtime error if <code>value</code> is not a string.</p>
|
||||
<h3>Num.<strong>infinity</strong> <a href="#num.infinity" name="num.infinity" class="header-anchor">#</a></h3>
|
||||
<p>The value of &infinity;.</p>
|
||||
<p>The value of ∞.</p>
|
||||
<h3>Num.<strong>nan</strong> <a href="#num.nan" name="num.nan" class="header-anchor">#</a></h3>
|
||||
<p>One value representing a NaN.</p>
|
||||
<p>Provides a default sane NaN number suitable for the vm internal values.</p>
|
||||
|
||||
@ -142,7 +142,7 @@ even if the code already contains block comments.</p>
|
||||
<p>One way to get a quick feel for a language’s style is to see what words it
|
||||
reserves. Here’s what Wren has:</p>
|
||||
<pre class="snippet">
|
||||
as break class construct else false for foreign if import
|
||||
as break class construct continue else false for foreign if import
|
||||
in is null return static super this true var while
|
||||
</pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user