dets:all/0
failed if it was called before any other dets
calls had been made.
erl_lint
in OTP R6 and R7, the
prefix "warn_" for the optional warning options
warn_unused_vars
and warn_format
was left
out.
erl_lint
for
correct calls to format/1
.
sys:change_code
was incorrect.
calendar
module now have better error
checking, exiting for type errors. In particular,
is_valid_date/[1,3]
no longer return true
for
any invalid dates.
intersection/1
in the sets
and
ordsets
modules no longer accepts the empty list as
argument. The reason is that intersection of an empty set is undefined.
random:uniform
; now uniform:seed/0
will be
called automatically. In addition, new functions exist for handling
random numbers in a functional way.
beam_lib
: cmp/2
,
cmp_dirs/2
, diff_dirs/2
,
strip/1
, strip_files/1
, and
strip_release/1
. New chunks names recognized by
beam_lib
: labeled_exports
and
labeled_locals
.
beam_lib
module now accept a binary as
well as a filename.
dets
module has been partly rewritten.
finsert/2
accepts a list of objects. info/2
accepts the new item tags access
, ram_file
and auto_save
, and the item tags memory
and
pid
have been documented. The read cache has been removed
and the cache_size
option is ignored (incompatibility).
Many functions have been more efficiently implemented than before, this
holds in particular when there are several threads. The repair of Dets
tables has been rewritten, and is significantly faster than before. New
functions are: to_ets/2
(adds Dets objects to an Ets
table); foldl/3
and foldr/3
(iterate over the
objects of a Dets table); from_ets/2
(replaces Dets
objects by Ets objects); select/1,2,3
(select Dets objects
using match specifications (see the ERTS User´s Guide for a
description of match specifications)); match/1,3
(match
Dets objects in chunks); select_delete/2
(deletes Dets
objects using match specifications); delete_all_objects/1
(deletes all objects of a Dets table efficiently);
init_table/2
(initiates a Dets table using a function to
gather objects); pid2name/1
(returns the name of the Dets
table handled by a pid).
lists:merge3/3
is a new function that merges three sorted
lists. lists:merge/1
is a new function that merges a list
of sorted lists.
file_sorter
sorts terms on files.
shell
module.
sofs
manipulates sets of sets.
usort/1
, umerge/{1,2}
,
umerge3/3
, ukeysort/2
,
ukeymerge/3
, usort/2
, and
umerge/3
are new functions in the lists
module. They work as sort/1
, merge/1
and so
on, but remove duplicates.
dets:is_dets_file/1
is a new function that recognizes Dets
tables.
bag
or duplicate_bag
. The
modified format preserves the time order of object insertions. The new
open_file/2
option version
sets the version
of new tables. Default is the version of the modified format. Opening a
table of the hitherto default format does not convert the table unless
the option {repair,force}
is given.
behaviour_info/1
to the
behaviour module. behaviour_info(callbacks)
should return
a list of {FunctionName,Arity}
which defines the callback
functions the behaviour uses. -behaviour(Behaviour)
is compiled, its exported
functions will be compared with the list returned by
Behaviour:behaviour_info(callbacks)
and a warning will be
issued if any callback function is missing. Behaviour
is present at
compile-time and can be found in the current code path.