Jump to content

Category:Sparkling: Difference between revisions

m
Line 76:
== The standard library ==
 
Similarly to almost allmost modern languages, the Sparkling distribution comes with a bunch of utility and run-time support functions bundled in various "packages" of the Sparkling standard library. These packages can be loaded separately by the host program (i. e. the native environment that runs the Sparkling interpreter); in the default mode, however, all standard functions are loaded at the beginning of a Sparkling session (represented by an <tt>SpnContext</tt> object, from an API point of view). Library functions are not special in the sense that they are just normal native extension functions. There is one exception, though: standard library functions assume the use of the context API, and as such, they require their user info argument to point to a valid <tt>SpnContext</tt> object. This is done so that these functions can use the error reporting facilities of the virtual machine.
 
The currently available standard packages are:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.