Nп/п : 63 из 93
 От   : redsk...@gmail.com                  2:5075/128        02 сен 23 11:38:56
 К    : Kaz Kylheku                                           02 сен 23 21:41:02
 Тема : Re: Common Lisp - stream designators
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<59ee99e3-53a9-41a9-865a-fa678a752679n@googlegroups.com> 2a51dc7f
@REPLY: <20230902075710.819@kylheku.com> 33cac935
@REPLYADDR redsk...@gmail.com
<redsky1066@gmail.com>
@REPLYTO 2:5075/128 redsk...@gmail.com
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<8a511544-26bb-4e20-b44b-a583134d4c80n@googlegroups.com> <20230902075710.819@kylheku.com>
@RFC-Message-ID:
<59ee99e3-53a9-41a9-865a-fa678a752679n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
On Saturday, 2 September 2023 at 17:13:37 UTC+2, Kaz Kylheku wrote:
> On 2023-09-02, redsk...@gmail.com <redsk...@gmail.com> wrote: 
 > > Stream designators are conveniences when creating source code.
It makes for compact expression. 
> > [snip]
> The definition of synonym streams doesn`t mention stream designators. 
> The dynamic variable held by the synonym stream is described as having 
> a stream value, not a stream designator value. 
> [snip]
> -- 
> TXR Programming Language: http://nongnu.org/txr 
> Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal 
> Mastodon: @Kazi...@mstdn.ca

 What you describe is what I would say is the most natural way of
understanding this topic. That is, the variable in a SYNONYM-STREAM must have
STREAMs as values. Simplifies the dynamics, and eliminates some potential
problematic situations.

 But as to the object designating a stream in FORMAT, that is,
strictly speaking, not a stream designator. Because, as stream designators
both T and NIL have a "usage-independent" specific denotations. Use of
NIL in FORMAT does not conform with NIL as a *stream* *designator*, as
it has a very specific meaning for FORMAT.

 So for FORMAT, the denotation of the stream indicator is
"usage-dependent", and this stream indicator is resolved to a stream in a very unique
way.

 This anomaly for FORMAT may be just the remnants of an historical
accident, where providers of Common Lisp implementations were not willing to
compromise during the standardization process, so we were left with yet another
exception in the CL standard.
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх