[ ECLiPSe Predicate Database built-in.|Group Index| Full Index]

[+File_1, ...., +File_N]

Compile file or list of files --- shorthand for compile/1.

+File_n
Atom or string.

Description

Used to compile file or list of files. The ``square bracket'' notation is used as a shorthand notation for compile/1. See the specification of compile/1 on page ?? for details.

Fail Conditions

None.

Resatisfiable

No.

Exceptions

(4) Instantiation fault
File_n is not instantiated.
(5) Type error
File_n is instantiated, but not to an atom or string.
(171)
File_n does not exist.

Examples


Success:
     [hanoi].         % compiles the file hanoi.pl

     [eclipse]: sh('cat file1').
     p:-writeln(hello).
     yes.
     [eclipse]: sh('cat file2').
     q(X) :- write(X).
     yes.
     [eclipse]: [user], p.
      p :- writeln(hi).
      user compiled 92 bytes in 0.00 seconds
     hi
     yes.
     [eclipse]: [file1, file2], p.
     /home/lp/user/file1 compiled 32 bytes in 0.02 seconds
     /home/lp/user/file2 compiled 92 bytes in 0.00 seconds
     hello
     yes.
Error:
     [F].            (Error 4).
     [file1/1].      (Error 5).
     [noexist].      (Error 171).


See Also

compile / 2