Re: I wonder if I'm missing something...

"David McClain (as dbm at refined-audiometrics dot com)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
I just tried building my own READ-SEQUENCE in LW.  You can’t really do that because READ-SEQUENCE is a DEFUN.

But you can define your own Method for STREAM:STREAM-READ-SEQUENCE. And that does what I need.



> On Nov 8, 2025, at 10:21, Marco Antoniotti (as marco dot antoniotti at unimib dot it) <[email protected]> wrote:
> 
> 
> 
> On Sat, Nov 8, 2025 at 6:15 PM David McClain <[email protected] <mailto:[email protected]>> wrote:
>> Meanwhile, I see that it is now possible to implement the ideas that you stated about Stream Adapters. 
>> 
>> I thought you were just musing about extensions that you would like to see added to Lisp.  I didn’t realize that we could implement our own READ-SEQUENCE until now. 
> 
> You can with SBCL because most sequence functions are somewhat generic (I do not have much experience using them).  Not sure about LW, or the ANSI.
> 
> I am curious about how you'd do it in LW (even portably to, say, ECL)
> 
> Cheers
> 
> Marco
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.