|
pnuts.ext.PSEPackage extends pnuts.lang.Package to implement a persistent package. Variables in the package is persistent, that is, they can live even after the process terminates. If the parameter db_name is specified, PSE database is created as the name. If the parameter lock is true, PSE database makes a lock so that other process can not open the same database.
% pnuts Copyright (c) 1997,1998 Sun Microsystems, Inc. All rights reserved. Pnuts interpreter Version 1.0beta1, 1.1.7 (Sun Microsystems Inc.) > import("pnuts.ext.*") null > package(PSEPackage("foo")) package "foo" > x = 100 100 > exit() % pnuts Copyright (c) 1997,1998 Sun Microsystems, Inc. All rights reserved. Pnuts interpreter Version 1.0beta1, 1.1.7 (Sun Microsystems Inc.) > import("pnuts.ext.*") null > package(PSEPackage("foo")) package "foo" > x 100