Replies: 16 comments 1 reply
-
|
I wouldn't populate it one character at a time - |
Beta Was this translation helpful? Give feedback.
-
|
I was wondering about the case where you need to set the string character by character, for example by reading a stream one character at a time. |
Beta Was this translation helpful? Give feedback.
-
|
Seems like a situation to be avoided as inefficient. I'd look for ways to redesign what was going on rather than go down that path. |
Beta Was this translation helpful? Give feedback.
-
|
file devices and others are "buffered" and read a buffer-full of characters using BINS rather than BIN. It seems likely that some of the tuning was lost with the character changes to support Unicode and end-of-line convention changes.... if you're reading from a non-MCCS stream into MCCS then you need to call the character reader and not buffer. Also, RPLCHARCODE needs to make a decision to convert the string from thin to fat. |
Beta Was this translation helpful? Give feedback.
-
|
I have in mind the output stream of |
Beta Was this translation helpful? Give feedback.
-
|
You might take a look at GIT-RESULT-TO-LINES in GITFNS
… On Aug 10, 2025, at 12:46 PM, Paolo Amoroso ***@***.***> wrote:
I have in mind the output stream of ShellCommand, using a string as a buffer to read a line at a time from the stream.
—
Reply to this email directly, view it on GitHub <#2250 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJL2S5VZMQD5G27Q5ED3M6OSXAVCNFSM6AAAAACDRPE6LOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBWGYYDGNA>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
which is rather ugly. |
Beta Was this translation helpful? Give feedback.
-
|
Yes |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
I see, thanks. So the trick to read a line is to call |
Beta Was this translation helpful? Give feedback.
-
|
Based on the code of Now I have a related question. Is it possible to modify the readtable to strip (omit altogether from the string returned by |
Beta Was this translation helpful? Give feedback.
-
|
I initially got the error |
Beta Was this translation helpful? Give feedback.
-
|
SYSEDIT loads EXPORTS.ALL, that's where you can get its constant value.
… On Aug 16, 2025, at 11:17 PM, Paolo Amoroso ***@***.***> wrote:
I initially got the error \MAXTHINCHAR is an unbound variable when evaluating \MAXTHINCHAR but then realized it requires SYSEDIT.
—
Reply to this email directly, view it on GitHub <#2250 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJK7ESIRWKTDNPSZG4D3OANAJAVCNFSM6AAAAACDRPE6LOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJTGAZDKNA>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
|
@pamoroso -- Yes, it's in EXPORTS.ALL. But... adhere to the once-and-only-once principle: don't duplicate the code that makes the IL:READ-STRING-RDTBL, just use that already defined global variable. If you want to modify that read table use COPYREADTABLE (spelling?) to get a new copy and then apply the changes to that. |
Beta Was this translation helpful? Give feedback.
-
|
I created a new function because I initially assumed I would need more extensive modifications. But using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I allocate a string with
ALLOCSTRINGin Interlisp what is the typical way of populating the string by setting individual characters? WtihRPLCHARCODEand code like this?Beta Was this translation helpful? Give feedback.
All reactions