previous up next     contents index
Next: Constants Up: Libraries Previous: Libraries

Compatibility

  Files: ``compat.ss'', ``compatu.ss'', ``compats.ss'', ``compatc.ss''
Requires: ``functios.ss''
Opened form requires: ``functiou.ss''
Signature: mzlib:compat tex2html_wrap_inline2054
Unit:  mzlib:compat@, imports mzlib:function tex2html_wrap_inline2054

This library defines a number of procedures that are commonly provided by other Scheme implementations. Most of these are aliases for built-in MzScheme procedures, as shown in Figure 3.1.

   figure217
Figure 3.1: Compatibility aliases

 

(atom? v) (procedure)

Same as (not (pair? v)).

 

(defmacro name formals body) (syntax)

Expands into an equivalent define-macro expression.

 

(getprop sym property default) (procedure)

Gets a property value associated with the symbol sym. The property argument is also a symbol that names the property to be found. If the property is not found, default is returned. If the default argument is omitted, #f is used as the default.

 

(last-pair list) (procedure)

Returns the last pair in list, raising an error if list is not a pair (list does not have to be a proper list).

 

(letmacro name formals macro-body body) (syntax)

Expands into an equivalent let-macro expression.

 

(make-class superclass variables init-proc) (syntax)

Supports the old MzScheme make-class form, now replaced with class.

 

(make-class* superclasses variables init-proc) (syntax)

Supports the old MzScheme make-class* form, now replaced with class*.

 

(new-cafe eval-handler) (procedure)

Like Chez Scheme's new-cafe. The eval-handler argument is optional.

 

(putprop sym property value) (procedure)

Installs a value for property of the symbol sym. See getprop above.

 

(sort less-than? list) (procedure)

This is the same as quicksort (see ``function.ss'') with the arguments reversed.



PLT