#84 sublis error in ABCL

closed-invalid
nobody
Lisp (13)
5
2008-08-30
2004-11-13
Steve Collins
No

I was going over a some of the code in PAIP page 156
and ran into an error?

(sublis '((?X . vacation))
'(what would it mean to you if you got a ?X ?))

This should return:
WHAT WOULD IT MEAN TO YOU IF YOU GOT A VACATION ?

I got:
WHAT WOULD IT MEAN TO YOU IF YOU GOT A ....

I cut and pasted this into Lispworks and slime/clisp
and got the correct responce.

I'm not sure where this could be going wrong? I'm
running J 0.21.0 on windows XP Java 1.5

Steven

Discussion

  • Peter Graves
    Peter Graves
    2004-11-13

    Logged In: YES
    user_id=558172

    ABCL's repl binds *PRINT-LENGTH* to 10, so the list is
    getting cut off when it's printed.

    If you use PRINT directly or do (PRINT *) after evaluating
    the form, you should get the output you expect.

    (I need to make this behavior configurable in the repl, but
    it's not a bug in ABCL per se.)

    Thanks!

    -Peter

     
  • Erik Huelsmann
    Erik Huelsmann
    2008-08-30

    • status: open --> closed-invalid
     
  • Erik Huelsmann
    Erik Huelsmann
    2008-08-30

    Logged In: YES
    user_id=2169408
    Originator: NO

    So, as per piso's answer, this may be considered pilot error. Closing as invalid.