#287 Doesn't override of eg. STREAM-FILE-POSITION

HEAD
closed
nobody
None
1
2014-09-23
2014-03-08
P.Marek
No

Eg. DBUS doesn't work, because ECL always returns NIL for (FILE-POSITION) of a FLEXI-STREAM. It looks like the FILE-POSITION call isn't fully resolved into a generic function call.

Discussion

  • P.Marek
    P.Marek
    2014-03-09

    Hmmm, I can get it to work by defining

    (defmethod gray::stream-file-position ((stream flexi-streams::vector-output-stream) 
                                           &optional new-pos)
      (fill-pointer (flexi-streams::vector-stream-vector stream)))
    

    I'm not sure whether this should be implicit by some other definition, though.

     


Anonymous


Cancel   Add attachments