Added aliasing of standard as a feature of standard

This commit is contained in:
2022-09-24 07:20:26 +01:00
parent f745470abe
commit aa44d5fd43
7 changed files with 23 additions and 22 deletions

View File

@@ -1,6 +1,5 @@
fn omitFirstInteger(arg1: int, ...rest) {
//rest comes in as an array of any
return rest;
}
print omitFirstInteger(1, 2, 3);
import standard as std;
print std;

View File

@@ -39,4 +39,12 @@
}
//test importing as an alias
{
import standard as std;
assert std["clock"]().length() == 24, "import library as alias failed";
}
print "All good";