Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I get the functionality of the 3.0.2 function allegro:read-lisp-line?

0
Posted

How do I get the functionality of the 3.0.2 function allegro:read-lisp-line?

0

A 2.6-3) Use the following function. which mostly replicates the action of that function. The stream argument is required (rather than optional) and it returns :eof when the end of the file is reached (rather than nil). If an actual line is read, nil or a non-empty list is returned so testing whether the result is listp distinguishes between reading a line and reading an end-of-file. The function here is named my-read-lisp-line.

0

A 2.6-3) Although the symbol aclwin:read-lisp-line exists (some symbols in the 3.0.2 allegro package are in the aclwin package in 6.0, and allegro is now a nickname of the common-graphics package), it has no function binding. (In ACL 3.0.2, that function read a line of the optional stream argument and returned a list of the lisp objects on that line. It returned nil for blank lines and also when the end of the file was reached.) This code mostly replicates the action of that function. The stream argument is required (rather than optional) and it returns :eof when the end of the file is reached (rather than nil). If an actual line is read, nil or a non-empty list is returned so testing whether the result is listp distinguishes between reading a line and reading an end-of-file. The function here is named my-read-lisp-line. While we do not usually recommend this, you can define aclwin:read-lisp-line by changing the function name to aclwin:read-lisp-line and wrapping the form in excl:witho

0

A 2.6-3) Although the symbol aclwin:read-lisp-line exists (some symbols in the 3.0.2 allegro package are in the aclwin package in 6.1, and allegro is now a nickname of the common-graphics package), it has no function binding. (In ACL 3.0.2, that function read a line of the optional stream argument and returned a list of the lisp objects on that line. It returned nil for blank lines and also when the end of the file was reached.) This code mostly replicates the action of that function. The stream argument is required (rather than optional) and it returns :eof when the end of the file is reached (rather than nil). If an actual line is read, nil or a non-empty list is returned so testing whether the result is listp distinguishes between reading a line and reading an end-of-file. The function here is named my-read-lisp-line. While we do not usually recommend this, you can define aclwin:read-lisp-line by changing the function name to aclwin:read-lisp-line and wrapping the form in excl:witho

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123