Opened 14 years ago

Closed 14 years ago

#260 closed defect (fixed)

PARSE-INTEGER should not accept NIL as the first argument

Reported by: alms Owned by: gb
Priority: major Milestone:
Component: ANSI CL Compliance Version:
Keywords: Cc:


From: Scott McKay <>

> From: Len Livshin <>
> Date: March 26, 2008 9:22:10 AM EDT
> $ /usr/local/openmcl/working-0711-8771/lx86cl64
> Welcome to Clozure Common Lisp Version 1.2-r8771MS  (LinuxX8664)!
> ? (parse-integer nil :junk-allowed t)
> 0
> ?
> I think that the common sense interpretation of ":junk-allowed" parameter is that you're allowed to pass junk *in* a string,
> not that you're allowed to pass junk *instead* of a string...

What Dan says.  'parse-integer' takes a string argument;
:junk-allowed t should not change its type signature.

Change History (2)

comment:1 Changed 14 years ago by gb

See changeset:8898, which was comitted sometime before this bug was entered here.

comment:2 Changed 14 years ago by gz

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r8913

Note: See TracTickets for help on using tickets.