Opened 11 years ago

Closed 11 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:

Description

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)
> NIL
> 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 11 years ago by gb

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

comment:2 Changed 11 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.