% abc_library.min...
ˆÚ“®
ŽŸ‚Ö ‘O‚Ö
ã‚Ö Åã
ŽQl
dynamic
external
include
package
init
ƒCƒtƒRƒ“ƒsƒ…[ƒ^ > MINERVA > —á‘èƒvƒƒOƒ‰ƒ€ > MINERVA‚Ì“Á’¥ > Žw—ß > package

package

% abc_library.min % % note that predicates starting with a '_' are not published in % the generated *.mpk file

% the predicate specified in the directive 'init' (if defined) % will be invoked at load time.

:- init('_abc_init').

'_abc_init' :- write('initializing abc_library...'),nl.

abc_f1(x). abc_f2(y). abc_f3(z).

abc_f4(X) :- '_abc_internal'(X).

'_abc_internal'(1).

% example.min % % Use the directive package to declare all predicates of a package. % The package will by dynamically loaded when one of its predicates % is first accessed.

% If there is a directive 'init' defined in the package, it will % be invoked at load time

% packages are produced with minervac or minervax.

:- package(abc_library).

main(_Args) :- abc_f1(X), abc_f2(Y), abc_f3(Z), writeq(xyz(X,Y,Z)),nl.

‘±‚­..
MINERVA
ifcomputer logo
f
Expert Services on the Web
Œ¾Œê
English
Japanese
ƒT[ƒo[
USA
Japan
ƒTƒCƒgƒ}ƒbƒv
õˆø
–ÚŽŸ
‘S‘Ì–ÚŽŸ
‘S‘Ìõˆø
ˆóüŒü‚«
imode
PDA
’Tõ
document: http://www.ifcomputer.co.jp/MINERVA/ExamplePrograms/MinervaFeatures/Directives/package/home_jp.html
published 2008/6/30 update 2001/3/22 (c) 1996-2006 IF Computer Japan
IF Computer §113-0022 Tel 03-5814-3352 ifcj@ifcomputer.co.jp
Customer Support “Œ‹ž“s•¶‹ž‹æç‘Ê–Ø5-28-2   http://www.ifcomputer.co.jp
–`“ª‚Ö managed with ubiCMS