next up previous index
Next: Syntax differences Up: Quintus Prolog Compatibility Previous: Using the Quintus

The Quintus compatibility predicates

The following Quintus predicates which differ from ECLiPSe

predicates are available:

'C'/3

for grammar rules  

absolute_file_name/2

 

atom_chars/2

 

character_count/2

 

current_input/1

 

current_key/2

 

current_module/2

 

current_output/1

 

expand_term/2

  This predicate is dummy, since the ECLiPSe macro facility works on every input term, provided that the flag macro_expansion is set to on.

float/1

 

flush_output/1

 

format/2, 3

 

gc/0

 

get0/2

  This predicate is identical to get/2 in ECLiPSe .

help/1

  This is the normal ECLiPSe help/1 predicate.

incore/1

 

integer/2

 

is_digit/1

 

is_lower/1

 

is_upper/1

 

line_count/2

 

manual/0

 

meta_predicate/1

  This predicate is not available, as Quintus' method of passing the module information to meta predicates differs substantially from the ECLiPSe more general concept of tools (see Section gif). Only the operator definition for this functor is available.

module/2

 

multifile/1

  This is implemented by declaring the predicates as dynamic, so to obtain more efficient programs it is better to put all clauses of the same procedure into one file (or to concatenate all files where multifile predicates occur).

no_style_check/1

 

nogc/0

 

nospyall/0

 

number_chars/2

 

numbervars/3

 

open_null_stream/1

 

otherwise/0

 

portray_clause/1

 

predicate_property/2

  The property interpreted is not provided. The property exported is returned if the predicate is exported or global. Use of get_flag/3 should be preferred.

prolog_flag/2, 3

    There are some differences in the flags, as they are mostly simulated with the ECLiPSe flags:

public/1

synonym for global/1    

put/2

 

put_line/1

 

retractall/1

 

save/2

 

set_input/1

 

set_output/1

 

source_file/1, 2

 

statistics/0, 2

    these predicates are slightly different than in Quintus, see the description of the ECLiPSe statistics/2 predicate. The predicate statistics/2 also accepts all Quintus values in the Quintus mode, but for stack_shifts is always returns zeros. statistics/0 returns only Quintus values when in Quintus mode.

stream_code/2

 

stream_position/2, 3

 

style_check/1

 

term_expansion/2

 

ttyflush/0, ttyget/1, ttyget0/1, ttynl/0, ttyput/1, ttyskip/1, ttytab/1

            these predicates work with the stdout stream

unix/1

 

unknown/2

 

version/0

 

Note that line_position/2 is not implemented. To perform sophisticated output formatting, printf/2,3 or string streams can be used.



next up previous index
Next: Syntax differences Up: Quintus Prolog Compatibility Previous: Using the Quintus



Micha Meier
Mon Mar 4 12:11:45 MET 1996