Changeset 358


Ignore:
Timestamp:
Jan 21, 2004, 12:32:56 AM (21 years ago)
Author:
Gary Byers
Message:

Default methods (specialized on T) of OPEN-STREAM-P, INTERACTIVE-STREAM-P,
INPUT-STREAM-P, OUTPUT-STREAM-P complain that argument isn't a stream.
This is OK, as long as users only specialize these methods on subclasses
of FUNDAMENTAL-STREAM, and they shouldn't be doing otherwise anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-streams.lisp

    r357 r358  
    252252    t))
    253253
     254(defmethod open-stream-p ((x t))
     255  (report-bad-arg x 'stream))
     256
    254257(defmethod open-stream-p ((stream stream))
    255258  (not (slot-value stream 'closed)))
     
    263266   esp those associated with windows."
    264267  80)
     268
     269(defmethod interactive-stream-p ((x t))
     270  (report-bad-arg x 'stream))
    265271
    266272(defmethod interactive-stream-p ((stream stream)) nil)
     
    949955    ())
    950956
     957(defmethod input-stream-p ((x t))
     958  (report-bad-arg x 'stream))
     959                           
    951960(defmethod input-stream-p ((s fundamental-input-stream))
    952961  t)
     962
     963(defmethod output-stream-p ((x t))
     964  (report-bad-arg x 'stream))
    953965
    954966(defmethod output-stream-p ((s fundamental-input-stream))
Note: See TracChangeset for help on using the changeset viewer.