Umka: a statically typed embeddable scripting language
for..in
now allows accessing collection items by pointererror()
is removedexit()
now accepts an error code returned to the OS and an optional error messageumkaRun()
and umkaCall()
now return an error code (0 on success)umkaAlive()
is added to check if the interpreter can still execute umkaRun()
or umkaCall()
std.Err
, std.error()
, std.exitif()
are added for graceful error handlingprintf()
on Windows fixedumkaInit()
is deprecatedstd.stdin()
, std.stdout()
, std.stderr()
, std.fflush()
umkaGetAPI()
without linking against UmkaumkaGetType()
replaced with typeptr()
a ? b : c
repr
replaced with %v
format specifier in printf
, sprintf
, fprintf
new()
len()
for stringsstd.rand()
append()
, insert()
, delete()
cap()
for dynamic arrays, copy()
for mapsany
as an alias for interface{}
+=
for strings_windows
or _linux
) are allowed in UMI file namescopy
, insert
ceil
, floor
and the %
operator for realsstd.localtime
, std.gmtime
, std.mktime
, std.timestr
exit
sprintf
, std.fread
, std.fwrite
map.um
is deprecated)fiber
is now a pointer; ^fiber
is no longer neededvalid()
checks if a dynamic array, interface or function variable is not nullsizeof(T)
and std.system(command)
void *
rather than int64_t
in VM stackumkaInit()