[Openmcl-devel] make-hash-table: error: non-standard test specified without hash-function

Robert Cram robert at robertcramconstruction.com
Sat Mar 5 16:24:16 UTC 2016


The error message isn’t very illuminating, but anyway :test must designate only one of eq, eql, equal, or equalp.

I have been puzzled by this, and would be grateful for an explanation, why one can’t provide any old test function.

- Bob

> On Mar 5, 2016, at 8:02 AM, Frank Goenninger <frgo at me.com> wrote:
> 
> Hi all:
> 
> This code:
> 
> (defun transport-plugin-info-equal-p (a b)
>  (string= a b))
> 
> (defvar *transport-plugin-infos* (make-hash-table :test 'transport-plugin-info-equal-p))
> 
> produces this error; "non-standard test specified without hash-function"
> 
> Well, yes, but…. I am not required to give a hash function, at least per CLHS. Any ideas ?
> 
> Tnx!
> 
> Kind regards
>   Frank
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> https://lists.clozure.com/mailman/listinfo/openmcl-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20160305/57cdbc1f/attachment.html>


More information about the Openmcl-devel mailing list