Skip to content

CL:COMPILE doesn't compile Interlisp declarations #2311

@rmkaplan

Description

@rmkaplan

Interlisp supports local declarations at the top of a function, as a special kind of comment:

Image

With this definition (FOO 1 2) returns (1 2).

If FOO is compiled by IL:COMPILE (or TCOMPL or BCOMPL or FAKE-COMPILE-FILE), the compiled function behaves the same way. There are a few function in the system (e.g. CALLSCCODE, PRINTNUM) that make use of this local-declaration feature, although I'm not sure where it is documented.

Note however that FOO cannot be compiled with CL:COMPILE (or CL:COMPILE-FILE), you get an error:

Image

Are there other Interlisp features that CL:COMPILE can't deal with? Are there Common Lisp features that FAKE-COMPILE-FILE can't deal with? Is there a document anywhere that discusses these differences?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions