<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://www.swi-prolog.org/bugzilla/bugzilla.dtd">

<bugzilla version="4.0"
          urlbase="http://www.swi-prolog.org/bugzilla/"
          
          maintainer="bugs@swi-prolog.org"
>

    <bug>
          <bug_id>26</bug_id>
          
          <creation_ts>2012-02-22 21:22:00 +0100</creation_ts>
          <short_desc>&apos;Type error&apos; reporting in length/2</short_desc>
          <delta_ts>2012-02-22 21:22:21 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>SWI-Prolog</product>
          <component>core</component>
          <version>5.11.x</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows</op_sys>
          <bug_status>CONFIRMED</bug_status>
          
          
          
          
          
          
          <priority>Highest</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Singleton">paul</reporter>
          <assigned_to name="Jan Wielemaker">bugs</assigned_to>
          

      

      

      

          <long_desc isprivate="0">
            <commentid>80</commentid>
            <who name="Paul Singleton">paul</who>
            <bug_when>2012-02-22 21:22:21 +0100</bug_when>
            <thetext>In or out of ISO mode,

1 ?- length(a, _).
ERROR: length/2: Type error: `list&apos; expected, found `a&apos;

looks right to me, but

2 ?- length(a, 0).
false.

should presumably throw the Type error too.

cheers - Paul</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>