Problem with dict:new()

Bjorn Gustavsson bjorn@REDACTED
Mon Nov 19 14:08:04 CET 2001


dict was changed already in R7B.

Use the orddict module instead of dict. The orddict module is guaranteed to
be implemented as a list.

/Bjorn

Nico Weling <nico.weling@REDACTED> writes:

> after upgrading to Erlang R8B I've got a lot of badmatch errors due to the 'new' dict module.
> 
> How is it possible to use the new release without changing my own programms?
> 
> 
> Eshell V4.9.1  (abort with ^G)
> 1>  D0 = dict:new().
> []
> 
> 
> Eshell V5.1  (abort with ^G)
> 1> D0 = dict:new().
> {dict,0,
>       16,
>       16,
>       8,
>       80,
>       48,
>       {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
>       {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}}
> 
> 
> Thanks in advance,
> 
> regards Nico.
> 

-- 
Björn Gustavsson            Ericsson Utvecklings AB
bjorn@REDACTED      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö



More information about the erlang-questions mailing list