[slime-devel] stream-file-position in CCL

Clozure CL has no recently added `stream-file-position' in their gray streams implementation. -- With Best Regards, Stas.

On Aug 30, 2008, at 23:07 , Stas Boukarev wrote:
On 8/31/08, Stas Boukarev <stassats@gmail.com> wrote:
Clozure CL has no recently added `stream-file-position' in their gray streams implementation.
But it has `stream-position'.
I see that Helmut has already reverted this part. For the record, the original proposal did not appear to mention *- POSITION <ftp://ftp.csl.sri.com/pub/users/gilham/stream-definition-by-user.mail
.
trivial-gray-streams calls this function STREAM-FILE-POSITION, as do CMUCL, SBCL, LispWorks <http://www.lispworks.com/documentation/lw51/LWRM/html/lwref-619.htm
, and ACL <http://www.franz.com/support/documentation/current/doc/streams.htm .
CLISP calls it STREAM-POSITION <http://clisp.cons.org/impnotes/gray-gf-general.html
, as does CCL apparently.
Some unification would be nice, and STREAM-POSITION is probably the better name because the operation can well be supported for non-file streams (flexi-streams uses the name FLEXI-STREAM-POSITION). Cheers, Michael

On Sun, Aug 31, 2008 at 2:54 AM, Michael Weber <michaelw+slime@foldr.org> wrote: ...
trivial-gray-streams calls this function STREAM-FILE-POSITION, as do CMUCL, SBCL, LispWorks <http://www.lispworks.com/documentation/lw51/LWRM/html/lwref-619.htm>, and ACL <http://www.franz.com/support/documentation/current/doc/streams.htm>.
ACL 8.1 doesn't seem to implement a function STREAM-FILE-POSITION, despite the referenced documentation. When ACL tries to import *gray-stream-symbols* from EXCL, it fails to find that function. In analogy to the conditionals for :stream-line-length, I made :stream-file-position conditional in the list of *gray-stream-symbols* in swank-backend.lisp. I offer the difference below, but don't know if that's the best approach. Thanks, Steve Index: swank-backend.lisp =================================================================== RCS file: /project/slime/cvsroot/slime/swank-backend.lisp,v retrieving revision 1.149 diff -r1.149 swank-backend.lisp 208c208 < :stream-file-position ---
#-allegro :stream-file-position

[accidentally sent off-list] On Sep 3, 2008, at 16:17 , shmargolis@gmail.com wrote:
On Sun, Aug 31, 2008 at 2:54 AM, Michael Weber <michaelw+slime@foldr.org
wrote: ... trivial-gray-streams calls this function STREAM-FILE-POSITION, as do CMUCL, SBCL, LispWorks <http://www.lispworks.com/documentation/lw51/LWRM/html/ lwref-619.htm>, and ACL <http://www.franz.com/support/documentation/current/doc/streams.htm
.
ACL 8.1 doesn't seem to implement a function STREAM-FILE-POSITION, despite the referenced documentation. When ACL tries to import
Helmut, I see the ChangeLog entry, but STREAM-FILE-POSITION appears still to be in the code: +2008-08-31 Helmut Eller <heller@common-lisp.net> + + * swank-backend.lisp (*gray-stream-symbols*): Remove + stream-file-position because it's called stream-position in CCL. + Should we make it #+(or sbcl cmu lispworks) for the time being? Cheers, Michael

On 8/31/08, Stas Boukarev <stassats@gmail.com> wrote:
On 8/31/08, Stas Boukarev <stassats@gmail.com> wrote:
Clozure CL has no recently added `stream-file-position' in their gray streams implementation.
Changelog states this problem was fixed, but actual file wasn't modified: * swank-backend.lisp (*gray-stream-symbols*): Remove stream-file-position because it's called stream-position in CCL. -- With Best Regards, Stas.
participants (3)
-
Michael Weber
-
shmargolis@gmail.com
-
Stas Boukarev