Eclipse Lisp: Implementation-Defined ANSI Features


The ANSI standard specifies that certain features are allowed to vary between implementations, but that a vendor must document how these features behave in their particular implementation. This information includes:

GENERAL

The behavior of the debugger and the Top-Level are documented in "The Lisp Top-Level" and "The Read-Eval-Print Loop and Debugger".

The supported character scripts are defined in "Characters in Eclipse", which also defines additional external-format designators.

Pathnames have a number of implementation defined features, as described in "Pathnames in Eclipse".

Parameters

Fixnums are 29 bits long, not including the sign bit, so MOST-POSITIVE-FIXNUM and MOST-NEGATIVE-FIXNUM are 536870911 and -536870912, respectively.

The values of other implementation-defined constants and variables can be determined interactively from the Lisp Top-Level.

Floating Point Types

Short-float and single-float are the same type, and double-float and long-float are the same type.

Structure BOA constructor &AUX variable initialization

If a slot appears as an &AUX variable in a BOA lambda-list structure constructor, the value specified by the &AUX syntax in the lambda-list is used. For an &AUX variable which appears as simply the variable name (eg. X) instead of as a list (eg. (X INITIAL-VALUE-FORM)), the initial-value is NIL. This is true regardless of whether the slot has been specified to have an initform.

PACKAGES

The default package-use-list contains only the ECLIPSE package. This package exports the same symbols that the COMMON-LISP package does, plus all the symbols defined in the Eclipse documentation. SYS and SYSTEM are nicknames for the ECLIPSE package.

The COMMON-LISP-USER package uses the ECLIPSE package.

The C package uses no other package and provides a home for symbols that relate to translation of Lisp code to C.

Currently, the ECLIPSE and C packages are the only packages defined by Eclipse other than the ones specified by the standard.

N.B.: Where the ANSI standard specifically allows an implementation to define additional keyword arguments for an operator, (as in the case of directory,) the Eclipse-defined named arguments (i.e. &key arguments) are named by symbols in the KEYWORD package.

N.B.: Where the ANSI standard does not specifically allow an implementation to define additional keyword arguments for an operator, (as in the case of compile-file,) the Eclipse-defined named arguments are named by symbols in the ECLIPSE package.


STREAMS

The initial values of the standard stream variables such as *standard-input* are described in the "Eclipse dictionary".

*Terminal-io* may be rebound or assigned, though programmers should be aware that one or more of the other standard stream variables may be bound to synonym-streams for *terminal-io*.

The Eclipse library utilities do not alter the input processing mode for stdin, so if the operating system or some other control process is providing canonical mode input processing for the stream which Eclipse sees as stdin, then Eclipse streams will see only the result of this input processing, not raw input.

Eclipse allows user-defined stream behavior through CLOS streams, compatible with ANSI specified stream behavior, CLIM, and the Gray "STREAM-DEFINITION-BY-USER" proposal.

The streams initially bound to stream variables such as *terminal-io* are considered interactive streams if their corresponding operating system file descriptors indicate through the operating system isatty() function that they are connected to terminals. The only Lisp mechanism for creating additional interactive streams is to create user-defined streams created through the CLOS streams interface.

Interactive streams can produce end-of-file conditions. However, listen and read-char-no-hang return NIL on interactive streams that are at end-of-file.

Input-stream-p returns NIL for broadcast-streams. Interactive-stream-p returns NIL for broadcast-streams.


PRINTING

Readable Arrays

When *print-readably* is true, arrays print using the usual notation if the result, when read, would produce the same array (i.e. is similar as a constant). Otherwise, the array is printed as:
   #.(make-array 'dimensions
                 :element-type 'element-type
	         :initial-contents 'contents)

Readable Pathnames

When *print-readably* is true, pathnames print using #S syntax. This allows them to be read back in as a pathname with similar components, independently of the value *default-pathname-defaults*.

In keeping with #S structure style, only the "slots" of the pathname are output, not additional arguments to make-pathname such as :CASE or :DEFAULT. (This means that the values of components must be displayed in :LOCAL :CASE.)

Characters

The ~c format directive prints characters by simply writing the value of (CHAR-INT character) to the stream. How this is displayed on interactive streams depends on the operating system or controlling process. For example, if *terminal-io* has its initial value, and Eclipse is running on a Unix system with stdout going to a terminal display, (format t "~c" #\Bell) might display as ^G, \007, or the terminal might beep and display nothing. See also, "Characters in Eclipse".

The ~:c format directive prints the char-name as a string if there is one. Otherwise, for non-graphic characters (which includes all control characters) the character is printed with the appropriate Control-, Meta- or Control-Meta- prefix.

*Print-Pretty*

The initial value of *print-pretty* is false in a runtime-only application (i.e. after execution of clInit), and true in a development application (i.e. after execution of clInitD). Since the Lisp Top-Level (2) is a development application, *print-pretty* is true in the Lisp Top-Level (2).

MISCELLANEOUS FUNCTIONS

Make-load-form

The form returned by make-load-form of a class will create a forward-referenced-class if the class is not defined at the time the load form is evaluated.

Ed

There is no resident editor, so ed does nothing.

Dribble

If dribble is called while a stream to a "dribble file" is still open from a previous call to dribble, dribbling occurs to both the old and new stream.

Dribble binds all seven of the standard stream variables.

Step

Step recursively interprets the argument form, using the lexical environment. Before each form is evaluated, step prints the level and the current form, and then calls break. One or more restart options are available to proceed with the evaluation, which are displayed and invoked in the usual manner for the debugger.

When each evaluation is complete, the level and the primary value produced by the form is printed.

The behavior of step is undefined if a step form is compiled in a lexical-environment which provides definitions for lexical variables or functions.

Step uses *debug-io*.

Get-internal-run-time

The time reported is the total CPU time used while executing instructions in either the user space of the calling process, or by the system on behalf of the calling process.

Time

Time currently prints out information in the following format:
xxxxxx.xx seconds of real time.
xxxxxx.xxx seconds of run time.
Real time and run time correspond to the values measured by get-internal-real-time and get-internal-run-time, though it is not specified whether these functions are a actually called.

Apropos, apropos-list

The search is case sensitive.

Documentation

Documentation appearing in defining forms (such as defun) and explicitly assigned with (SETF DOCUMENTATION) is retained.

Documentation on some kinds of function objects is not currently retained.

Require

The value returned by require indicates which files, if any were loaded.

If the module specified as an argument to require is already provided, require returns nil.

Otherwise, if the pathname-list argument is specified, the files of pathname-list are loaded, and pathname-list is returned.

Otherwise, require attempts to load, in order:

  1. P"module-name" (i.e. (MAKE-PATHNAME :NAME (STRING module-name) :CASE :COMMON)),
  2. P"sys:site;module-name",
  3. P"sys:source;module-name".
The truename of the first such file found is returned. Only the first file found is loaded. See Site and Other Initial Definitions.
[Previous] [Next] [Up] [Documentation Contents] [Eclipse Home Page]