The Revised Maclisp ManualThe PitmanualPage C-8
Published by HyperMeta Inc.
 
Prev | Index | Next
Common Lisp Conversion
CL Conversion
Trivial Changes
Easy Changes
Hard Changes
Substandard Code
Cosmetic Changes
User-Defined Functions
Non-Portable Code
Donate

Conv: Non-Portable Code

[Blue Marble]
Climate Change
How late
is too late
to respond?

Error Handling

Common Lisp has no defined way to handle errors. Even things as simple as ERRSET cannot be written in Common Lisp.

[Note that this document was written for 1984 Common Lisp, the original language, long before it was standardized. ANSI Common Lisp not only has IGNORE-ERRORS, but many other error handling facilities. —KMP, 27 May 2007]

Display Operations

Common Lisp has no defined way to do cursor motion. The general case of Maclisp CURSORPOS has no defined rewrite. The following special case is defined, however:

    (CURSORPOS 'A stream)    becomes    (FRESH-LINE stream)

Environment Inquiry

The STATUS and SSTATUS special forms are not available in Common Lisp. There is no Common Lisp rewrite for some of their features. However, the following equivalents are available:

    (STATUS SITE)                becomes  (MACHINE-INSTANCE)
    (STATUS FEATURE something)   becomes  (MEMBER 'something *FEATURES*)
    (SSTATUS FEATURE something)  becomes  (PUSHNEW 'something *FEATURES*)

See pages 447-448 of Common Lisp: The Language (First Edition, 1984) for more ideas.


CL Conversion (1 2 3 4 5 6 7 (8))


The Revised Maclisp Manual (Sunday Morning Edition)
Published Sunday, December 16, 2007 06:17am EST, and updated Sunday, July 6, 2008.
Prev | Index | Next