Toyokazu Tomatsu
Posts: 66
Nickname: tomatsu
Registered: Jul, 2003
Toyokazu Tomatsu is a developer of Pnuts.
|
|
|
|
Pnuts Updates (Dynamic Modules, Bug fixes)
|
Posted: Jun 8, 2004 12:29 AM
|
|
Advertisement
|
Changes in 20040521(1.0rc2, 1.1beta):
- (1) Dynamic Modules was introduced
For example, the following code creates a package 'p', defines a function 'add' in it, uses the package as a module, and then exports the function.
p = createPackage()
p.add = function (x, y) x + y
use(p)
p.export("add")
add(2, 3) ==> 5
Difference from just defining the function in a package is that the function is visible no matter what package is selected as the current package.
- (2) Bug fixes:
Read: Pnuts Updates (Dynamic Modules, Bug fixes)
|
|