CLIM mail archive
[Prev][Next][Index][Thread]
Wanted: readline-no-echo
From: Jeff Morrill <jmorrill@BBN.COM>
...
I can see a potential problem with XJ313's specification for
echo streams here. Presumably a frame pane is (or will be)
an echo stream, and yet there are times when you want to read
a string from a frame pane without echoing (e.g. passwords).
There might be a reason to add a new reader control variable,
*read-echo*, for this case.
X3J13 actually specifies accessors for the components of an echo
stream: ECHO-STREAM-INPUT-STREAM and ECHO-STREAM-OUTPUT-STREAM. They
are new, so not all implementations provide them yet.
I really don't want to get sucked too deep into the issue whether a
frame pane actually would be implemented as an echo stream, but in
fact it seems unlikely. The original STREAM-DEFINITION-BY-USER
proposal by David Gray pointed out that the compound stream of the
original CLtL specification (echo-, broadcast-, two-way-, and
concatentated-) are antithetical to the architecture of subclassable
closified stream types. For instance, a generic function that needs
to descriminate on stream class has an intractible problem with an
echo stream. There is no automatic way for the gf to discriminate on
either the input stream or output stream -- only the echo stream is
available to the gf discrimination mechanism.
References:
Main Index |
Thread Index