jantuomi / tunkki

A lightning fast scripting language without the need for parentheses.
http://jantuomi.github.io/tunkki
MIT License
2 stars 0 forks source link

Unify 'include' behaviour #15

Closed jantuomi closed 8 years ago

jantuomi commented 8 years ago

With builtin modules include function automatically adds the included library object into scope. User made library objects are executed immediately and not added to scope as objects.

Example:

include? "cast"! /* a variable called _cast_ can be found in the scope */
include? "my_own_tunkki_lib"! /* the library content is executed and no variable can be found */