#106 read-from-string ignores keyword args

closed-invalid
clisp (525)
5
2002-04-30
2002-04-30
Anonymous
No

Working with CLISP 2.28 built for Win32,
read-from-string ignores the arguments for the keywords
:start and :end.

Example follows:

(setf str "blah | blah2 | blah")
"blah | blah2 | blah3 |"

(read-from-string str)
BLAH ;
5

(read-from-string str :start 5)
BLAH ;
5

(read-from-string str :start 6)
BLAH ;
5

(read-from-string str :start 9)
BLAH ;
5

1. Break [29]> (read-from-string str :end 2)
BLAH ;
5

Discussion

  • Jörg Höhle

    Jörg Höhle - 2002-04-30

    Logged In: YES
    user_id=377168

    Forgetting about optional arguments when using keywords is a
    good candidate for a Common Lisp FAQ. READ-FROM-STRING and a
    few other Common Lisp function are concerned and repeatedly
    catch not only beginners.
    See the CLHS for how to use the function with :start and
    :end:
    http://www.xanalys.com/software_tools/reference/HyperSpec/Bo
    dy/f_rd_fro.htm#read-from-string

     
  • Jörg Höhle

    Jörg Höhle - 2002-04-30
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks