Changeset 14588


Ignore:
Timestamp:
11/24/13 21:00:55 (9 years ago)
Author:
ehuelsmann
Message:

Fix "COND clause should at least have a test form" bug reported by

Pascal Bourguingon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Primitives.java

    r14500 r14588  
    20442044        @Override
    20452045        public LispObject execute(LispObject args, Environment env)
    2046 
    20472046        {
    20482047            final LispThread thread = LispThread.currentThread();
     
    20502049            while (args != NIL) {
    20512050                LispObject clause = args.car();
     2051                if (! (clause instanceof Cons))
     2052                  return error(new ProgramError("COND clause is not a non-empty list: "
     2053                                                + clause.princToString()));
    20522054                result = eval(clause.car(), env, thread);
    20532055                thread._values = null;
Note: See TracChangeset for help on using the changeset viewer.