Changeset 10768


Ignore:
Timestamp:
Sep 16, 2008, 12:30:53 AM (11 years ago)
Author:
rme
Message:

In PRINT-UNREADABLE-OBJECT.2, mark the form that tests for output of
the form #<SOME-TYPE > (note space) as bogus.

I suppose I can see how a pedantic reading of the spec could lead to
this conclusion, but since the spec also implies that the precise
format of stuff between "#<" and ">" is implementation-dependent, it's
hard for me to agree. It's not like programs can portably rely on the
output of PRINT-UNREADABLE-OBJECT anyway. In the case above, it just
looks stupid. (I mean, if it's valid to omit the body forms, then it
stands to reason that it's valid to omit the extra spaces that would
normally delimit the output from the body forms. Sheesh.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/ansi-tests/print-unreadable-object.lsp

    r8991 r10768  
    4040               (equal return-vals2 '(nil))
    4141               (string= s1 "#<" :end1 2)
     42               #+bogus-test
    4243               (string= s1 s2 :end1 (- (length s1) 1)
    4344                        :end2 (- (length s2) 2))
Note: See TracChangeset for help on using the changeset viewer.