1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.3 -->
<HTML>
<HEAD>
<TITLE>STDLIB Release Notes</TITLE>
<SCRIPT type="text/javascript" src="../../../../doc/erlresolvelinks.js">
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
ALINK="#FF0000">
<CENTER>
<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif"></A>
</CENTER>
<A NAME="1"><!-- Empty --></A>
<H2>1 STDLIB Release Notes</H2>
<P>This document describes the changes made to the STDLIB application.
<A NAME="1.1"><!-- Empty --></A>
<H3>1.1 STDLIB 1.14.2</H3>
<A NAME="1.1.1"><!-- Empty --></A>
<H4>1.1.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
The control sequences <CODE>p</CODE> and <CODE>P</CODE> of the
<CODE>Format</CODE> argument of the functions
<CODE>io:format/2,3</CODE> and <CODE>io_lib:format/2</CODE> did not
handle binaries very well. This bug, introduced in
stdlib-1.14, has been fixed.
<BR>
Own Id: OTP-6230
<BR>
</LI>
<LI>
<CODE>filelib:wildcard(Wc, PathWithRedundantSlashes)</CODE>,
where <CODE>PathWithRedundantSlashes</CODE> is a directory path
containing redundant slashes, such as <CODE>/tmp/</CODE> or
<CODE>//tmp</CODE>, could return incorrect results. (Thanks to
Martin Bjorklund.)
<BR>
Own Id: OTP-6271
<BR>
</LI>
<LI>
The Erlang code preprocessor crashed if the predefined
macros ?MODULE or ?MODULE_STRING were used before the
module declaration. This bug has been fixed.<BR>
Own Id: OTP-6277
<BR>
</LI>
</UL>
<A NAME="1.1.2"><!-- Empty --></A>
<H4>1.1.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
Support for faster join of two tables has been added
to the <CODE>qlc</CODE> module. There are two kinds of fast
joins: lookup join that uses existing indices, and merge
join that takes two sorted inputs. There is a new
<CODE>join</CODE> option that can be used to force QLC to use a
particular kind of join in some QLC expression.<BR>
Several other changes have also been included:<BR>
<BR>
<UL>
<LI>
The new <CODE>tmpdir</CODE> option of <CODE>cursor/2</CODE>,
<CODE>eval/2</CODE>, <CODE>fold/4</CODE>, and <CODE>info/2</CODE> can be
used to set the directory that join uses for temporary
files. The option also overrides the <CODE>tmpdir</CODE> option
of <CODE>keysort/3</CODE> and <CODE>sort/2</CODE>.<BR>
</LI>
<LI>
The new <CODE>lookup</CODE> option can be used to
assert that constants are looked up when evaluating some
QLC expression.<BR>
</LI>
<LI>
The <CODE>cache</CODE> and <CODE>cache_all</CODE> options
accept new tags: <CODE>ets</CODE>, <CODE>list</CODE>, and <CODE>no</CODE>.
The tag <CODE>list</CODE> caches answers in a list using a
temporary file if the answers cannot be held in RAM.
Combining <CODE>{cache,list}</CODE> and <CODE>{unique, true}</CODE>
is equivalent to calling <CODE>sort/2</CODE> with the option
<CODE>unique</CODE> set to <CODE>true</CODE>. The old tags
<CODE>true</CODE> (equivalent to <CODE>ets</CODE>) and <CODE>false</CODE>
(equivalent to <CODE>no</CODE>) are recognized for backward
compatibility.<BR>
</LI>
<LI>
The new option <CODE>max_list_size</CODE> can be used
to set the limit where merge join starts to use temporary
files for large equivalence classes and when answers
cached in lists are put on temporary files.<BR>
</LI>
<LI>
There is a new callback <CODE>is_sorted_key</CODE> to
be supplied as an option to <CODE>table/2</CODE>.<BR>
</LI>
<LI>
QLC analyzes each and every QLC expression when
trying to find constants for the lookup function.
Hitherto only QLC expressions with exactly one generator
were analyzed.<BR>
Note that only filters with guard
syntax placed immediately after the generator are
analyzed. The restriction to guard filters is an
incompatible change. See <CODE>qlc(3)</CODE> for further
details.<BR>
</LI>
<LI>
In a similar way several match specifications
for traversal of QLC tables can be utilized for different
generators of one single QLC expression.<BR>
</LI>
<LI>
A bug has been fixed: when caching answers to a
sufficiently complex query it could happen that some
answers were not returned.<BR>
</LI>
</UL>
*** POTENTIAL INCOMPATIBILITY ***
<BR>
Own Id: OTP-6038
<BR>
</LI>
<LI>
The Erlang pretty printer (<CODE>erl_pp</CODE>) is now much
faster when the code is deeply nested. A few minor bugs
have been fixed as well.
<BR>
Own Id: OTP-6227 Aux Id: OTP-5924
<BR>
</LI>
<LI>
The Erlang shell now tries to garbage collect large
binaries. Under certain circumstances such binaries could
otherwise linger on for an indefinite amount of time.
<BR>
Own Id: OTP-6239
<BR>
</LI>
<LI>
To help Dialyzer find more bugs, many functions in the
Kernel and STDLIB applications now only accept arguments
of the type that is documented.<BR>
For instance, the functions <CODE>lists:prefix/2</CODE> and
<CODE>lists:suffix/2</CODE> are documented to only accept lists
as their arguments, but they actually accepted anything
and returned <CODE>false</CODE>. That has been changed so that
the functions cause an exception if one or both arguments
are not lists.<BR>
Also, the <CODE>string:strip/3</CODE> function is documented
to take a character argument that is a character to strip
from one or both ends of the string. Given a list instead
of a character, it used to do nothing, but will now cause
an exception.<BR>
Dialyzer will find most cases where those functions
are passed arguments of the wrong type.<BR>
*** POTENTIAL INCOMPATIBILITY ***
<BR>
Own Id: OTP-6295
<BR>
</LI>
</UL>
<A NAME="1.2"><!-- Empty --></A>
<H3>1.2 STDLIB 1.14.1</H3>
<A NAME="1.2.1"><!-- Empty --></A>
<H4>1.2.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
The functions <CODE>c:y/1,2</CODE> which call
<CODE>yecc:file/1,2</CODE> are now listed by
<CODE>c:help/0</CODE>.<BR>
Documentation of <CODE>c:y/1,2</CODE> has been added to
<CODE>c(3)</CODE>.<BR>
The fact that the control sequence character <CODE>s</CODE>
recognizes binaries and deep character lists has been
documented in <CODE>io(3)</CODE>. This feature was added in
R11B-0 (OTP-5403).<BR>
Own Id: OTP-6140
<BR>
</LI>
<LI>
The shell command rr() sometimes failed to read record
definitions from file(s). This problem has been fixed.
<BR>
Own Id: OTP-6166 Aux Id: OTP-5878
<BR>
</LI>
<LI>
The nonlocal function handler in <CODE>erl_eval</CODE>, which
is used for implementing the restricted mode of the
Erlang shell, did not handle calls to
<CODE>erlang:apply/3</CODE> correctly. This bug has been fixed.
<BR>
Own Id: OTP-6169 Aux Id: seq10374
<BR>
</LI>
<LI>
ets:rename/1 could deadlock, or crash the SMP emulator
when the table wasn't a named table.
<BR>
ets:next/2, and ets:prev/2 could return erroneous results
on the SMP emulator.
<BR>
Own Id: OTP-6198 Aux Id: seq10392, seq10415
<BR>
</LI>
<LI>
When closing a Dets table the space management data was
sometimes saved in such a way that opening the table
could not be done without repairing the file. This bug
has been fixed.
<BR>
Own Id: OTP-6206
<BR>
</LI>
</UL>
<A NAME="1.3"><!-- Empty --></A>
<H3>1.3 STDLIB 1.14</H3>
<A NAME="1.3.1"><!-- Empty --></A>
<H4>1.3.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
A bugfix in QLC: two of the call-back functions used
for implementing QLC tables, <CODE>TraverseFun</CODE> and
<CODE>LookupFun</CODE>, are now allowed to return a term other
than a list. Such a term is immediately returned as the
results of the current query, and is useful mostly for
returning error tuples.<BR>
Several other minor bugs have been also been fixed.<BR>
Own Id: OTP-5195<BR>
</LI>
<LI>
The STDLIB modules <CODE>error_logger_file_h</CODE> and
<CODE>error_logger_tty_h</CODE> now read the environment
variable <CODE>utc_log</CODE> from the SASL application.<BR>
Own Id: OTP-5535<BR>
</LI>
<LI>
<CODE>ets:info/1</CODE> has been corrected to behave according
to the documentation and return a list of tuples, not a
tuple with tuples.<BR>
*** POTENTIAL INCOMPATIBILITY ***<BR>
Own Id: OTP-5639<BR>
</LI>
<LI>
Referencing a so far undeclared record from the default
value of some record declaration is from now on considered
an error by the linter. It is also an error if the default
value of a record declaration uses or binds a variable.<BR>
*** POTENTIAL INCOMPATIBILITY ***<BR>
Own Id: OTP-5878<BR>
</LI>
<LI>
When a file <CODE>.hrl</CODE> file is included using
<CODE>-include_lib</CODE>, the include path is temporarily
updated to include the directory the <CODE>.hrl</CODE> file was
found in, which will allow that <CODE>.hrl</CODE> file to itself
include files from the same directory as itself using
<CODE>-include</CODE>. (Thanks to Richard Carlsson.)<BR>
Own Id: OTP-5944<BR>
</LI>
<LI>
Corrected <CODE>filelib:ensure_dir/1</CODE> which sometimes
returned <CODE>true</CODE> and sometimes <CODE>ok</CODE> to always
return <CODE>ok</CODE> when successful. This goes against the
documentation which said <CODE>true</CODE>, but <CODE>ok</CODE> was
judged to be a more logical return value.<BR>
*** POTENTIAL INCOMPATIBILITY ***<BR>
Own Id: OTP-5960 Aux Id: seq10240 <BR>
</LI>
<LI>
The shell now handles records better when used in calls
on the form <CODE>{Module, Function}(ArgList)</CODE>.<BR>
Own Id: OTP-5990 Aux Id: OTP-5876 <BR>
</LI>
<LI>
The functions <CODE>lists:ukeysort/2</CODE> and
<CODE>lists:ukeymerge/3</CODE> have been changed in such a way
that two tuples are considered equal if their keys
match.<BR>
For the sake of consistency, <CODE>lists:usort/2</CODE> and
<CODE>lists:umerge/3</CODE> have been modified too: two elements
are considered equal if they compare equal.<BR>
The <CODE>file_sorter</CODE> module has been modified in a
similar way: the <CODE>unique</CODE> option now applies to the
key (<CODE>keysort()</CODE> and <CODE>keymerge()</CODE>) and the
ordering function (the option <CODE>{order, Order} </CODE>).<BR>
*** POTENTIAL INCOMPATIBILITY ***<BR>
Own Id: OTP-6019<BR>
</LI>
<LI>
Correction in documentation for
<CODE>ets:update_counter/3</CODE>; failure with <CODE>badarg</CODE>
also if the counter to be updated is the key.<BR>
Own Id: OTP-6072<BR>
</LI>
<LI>
When sorting terms using the <CODE>file_sorter</CODE> module
and an ordering fun, the sort was not always stable. This
bug has been fixed.<BR>
Own Id: OTP-6088<BR>
</LI>
</UL>
<A NAME="1.3.2"><!-- Empty --></A>
<H4>1.3.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
Improvements of the linter:<BR>
<UL>
<LI>
The <CODE>compile</CODE> attribute is recognized after
function definitions.<BR>
</LI>
<LI>
The new compiler option
<CODE>nowarn_deprecated_function</CODE> can be used for
turning off warnings for calls to deprecated functions.
<BR>
</LI>
<LI>
The new compiler option
<CODE>{nowarn_unused_function,[{Name,Arity}]}</CODE> turns off
warnings for unused local functions for the mentioned
functions. The new options
<CODE>{nowarn_deprecated_function,[{Module,Name,Arity}]}</CODE>
and <CODE>{nowarn_bif_clash,[{Name,Arity}]}</CODE> work
similarly.<BR>
</LI>
</UL>
The Erlang code preprocessor <CODE>epp</CODE> now recognizes
the <CODE>file</CODE> attribute. This attribute is meant to be
used by tools such as Yecc that generate source code
files.<BR>
Own Id: OTP-5362<BR>
</LI>
<LI>
The formatting option <CODE>~s</CODE> of <CODE>io:fwrite</CODE> and
<CODE>io_lib:fwrite</CODE> has been extended to handle arguments
that are binaries or I/O lists.<BR>
Own Id: OTP-5403<BR>
</LI>
<LI>
The control sequences <CODE>p</CODE> and <CODE>P</CODE> of the
<CODE>Format</CODE> argument of the functions
<CODE>io:format/2,3</CODE> and <CODE>io_lib:format/2</CODE> have been
changed as to display the contents of binaries containing
printable characters as strings.<BR>
Own Id: OTP-5485<BR>
</LI>
<LI>
The linter emits warnings for functions exported more
than once in <CODE>export</CODE> attributes.<BR>
Own Id: OTP-5494<BR>
</LI>
<LI>
A manual for STDLIB has been added, <CODE>stdlib(6)</CODE>. It
mentions the configuration parameters for the Erlang
shell.<BR>
Own Id: OTP-5530<BR>
</LI>
<LI>
Added the <CODE>zip</CODE> module with functions for reading
and creating zip archives. See <CODE>zip(3)</CODE>.<BR>
Own Id: OTP-5786<BR>
</LI>
<LI>
Simple-one-for-one supervisors now store the pids of
child processes using <CODE>dict</CODE> instead of a list. This
significantly improves performance when there are many
dynamic supervised child processes. (Thanks to Mickal
Rmond et al.)<BR>
Own Id: OTP-5898<BR>
</LI>
<LI>
When given the new option '<CODE>strict_record_tests</CODE>',
the compiler will generate code that verifies the record
type for '<CODE>R#record.field</CODE>' operations in guards. Code
that verifies record types in bodies has already been
generated since R10B, but in this release there will be a
'<CODE>{badrecord,RecordTag}</CODE>' instead of a
'<CODE>badmatch</CODE>' if the record verification test fails.
See the documentation for the <CODE>compile</CODE> module for
more information.<BR>
The Erlang shell always applies strict record tests.<BR>
Own Id: OTP-5915 Aux Id: OTP-5714 <BR>
</LI>
<LI>
The Erlang pretty printer (<CODE>erl_pp</CODE>) now tries to
insert line breaks at appropriate places.<BR>
Own Id: OTP-5924<BR>
</LI>
<LI>
The <CODE>public</CODE> option has been removed from
<CODE>digraph:new/1</CODE>. The reason is that several
functions in the <CODE>digraph</CODE> module are implemented
using multiple ETS accesses, which is not thread safe.
(Thanks to Ulf Wiger.)<BR>
*** POTENTIAL INCOMPATIBILITY ***<BR>
Own Id: OTP-5985<BR>
</LI>
<LI>
The function <CODE>lists:keyreplace/4</CODE> checks that the
fourth argument (<CODE>NewTuple</CODE>) is a tuple.<BR>
Own Id: OTP-6023<BR>
</LI>
<LI>
Added an example of how to reconstruct source code from
debug info (abstract code) to <CODE>beam_lib(3)</CODE>. (Thanks
to Mats Cronqvist who wrote the example.)<BR>
Own Id: OTP-6073<BR>
</LI>
<LI>
The new compiler option <CODE>warn_unused_record</CODE> is used
for finding unused locally defined record types.<BR>
Own Id: OTP-6105<BR>
</LI>
</UL>
<A NAME="1.4"><!-- Empty --></A>
<H3>1.4 STDLIB 1.13.12</H3>
<A NAME="1.4.1"><!-- Empty --></A>
<H4>1.4.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
<CODE>shell_default:xm/1</CODE> has been added. It calls
<CODE>xref:m/1</CODE>.<BR>
Own Id: OTP-5405 Aux Id: OTP-4101 <BR>
</LI>
<LI>
Warnings are output whenever so far undeclared records are
referenced from some default value of a record
declaration. In STDLIB 1.14 (R11B) such forward references
will cause a compilation error.<BR>
Own Id: OTP-5878<BR>
</LI>
<LI>
The linter's check of the <CODE>deprecated</CODE> attribute did
not take the compile option <CODE>export_all</CODE> into
account. This bug has been fixed.<BR>
Own Id: OTP-5917<BR>
</LI>
<LI>
The Erlang pretty printer did not handle <CODE>try/catch</CODE>
correctly. This bug has been fixed.<BR>
Own Id: OTP-5926
<BR>
</LI>
<LI>
Corrected documentation for <CODE>lists:nthtail/3</CODE>.<BR>
Added documentation for <CODE>lists:keymap/3</CODE>.<BR>
Tried to clarify some other type declarations and
function descriptions in <CODE>lists(3)</CODE>.<BR>
Corrected documentation for <CODE>timer:now_diff/2</CODE>.<BR>
Fixed broken links in <CODE>gen_fsm(3)</CODE>,
<CODE>gen_server(3)</CODE>, <CODE>io_lib(3)</CODE> and <CODE>lib(3)</CODE>.
<BR>
Own Id: OTP-5931<BR>
</LI>
<LI>
Type checks have been added to functions in
<CODE>lists.erl</CODE>.<BR>
Own Id: OTP-5939<BR>
</LI>
</UL>
<A NAME="1.4.2"><!-- Empty --></A>
<H4>1.4.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The new STDLIB module <CODE>erl_expand_records</CODE> expands
records in abstract code. It is used by the Erlang shell,
which means that Compiler is no longer used by the shell.
<BR>
Own Id: OTP-5876 Aux Id: OTP-5435 <BR>
</LI>
<LI>
The compiler will now warn that the
<CODE>megaco:format_versions/1</CODE> function is deprecated.<BR>
Own Id: OTP-5976<BR>
</LI>
</UL>
<A NAME="1.5"><!-- Empty --></A>
<H3>1.5 STDLIB 1.13.11</H3>
<A NAME="1.5.1"><!-- Empty --></A>
<H4>1.5.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
When calling <CODE>gen_server:enter_loop</CODE> with a
registered server name, it was only checked that the
registered name existed, not that it actually was the
name of the calling process.<BR>
Own Id: OTP-5854<BR>
</LI>
</UL>
<A NAME="1.5.2"><!-- Empty --></A>
<H4>1.5.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
More detail on <CODE>beam_lib:version/1</CODE> in
documentation.<BR>
Own Id: OTP-5789<BR>
</LI>
<LI>
The new function <CODE>io:read/3</CODE> works like
<CODE>io:read/1,2</CODE> but takes a third argument,
<CODE>StartLine</CODE>.<BR>
Own Id: OTP-5813<BR>
</LI>
<LI>
The new function <CODE>gen_fsm:enter_loop/4,5,6</CODE>, similar
to <CODE>gen_server:enter_loop/3,4,5</CODE>, has been added.<BR>
Own Id: OTP-5846 Aux Id: seq10163 <BR>
</LI>
<LI>
The function <CODE>c:i/1</CODE> is now exported.<BR>
Own Id: OTP-5848 Aux Id: seq10164 <BR>
</LI>
</UL>
<A NAME="1.6"><!-- Empty --></A>
<H3>1.6 STDLIB 1.13.10</H3>
<A NAME="1.6.1"><!-- Empty --></A>
<H4>1.6.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
A couple of type errors have been fixed in <CODE>sofs</CODE>.<BR>
Own Id: OTP-5739<BR>
</LI>
<LI>
The pre-processor used to complain that the macro
definition '<CODE>-define(S(S), ??S).</CODE>' was circular,
which it isn't. (Thanks to Richard Carlsson.)<BR>
Own Id: OTP-5777<BR>
</LI>
</UL>
<A NAME="1.7"><!-- Empty --></A>
<H3>1.7 STDLIB 1.13.9</H3>
<A NAME="1.7.1"><!-- Empty --></A>
<H4>1.7.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
The linter, QLC and the module <CODE>erl_pp</CODE> did not
handle the new '<CODE>fun M:F/A</CODE>' construct in all
situations. This problem has been fixed.<BR>
Own Id: OTP-5644<BR>
</LI>
</UL>
<A NAME="1.7.2"><!-- Empty --></A>
<H4>1.7.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The manual pages for most of the Kernel and some of
the STDLIB modules have been updated, in particular
regarding type definitions.<BR>
The documentation of the return value for
<CODE>erts:info/1</CODE> has been corrected.<BR>
The documentation for <CODE>erlang:statistics/1</CODE> now
lists all possible arguments.<BR>
Own Id: OTP-5360<BR>
</LI>
<LI>
Replaced some tuple funs with the new <CODE>fun M:F/A</CODE>
construct.<BR>
The high-order functions in the lists module no longer
accept bad funs under any circumstances.
'<CODE>lists:map(bad_fun, [])</CODE>' used to return
'<CODE>[]</CODE>' but now causes an exception.<BR>
Unused, broken compatibility code in the <CODE>ets</CODE>
module was removed. (Thanks to Dialyzer.)<BR>
Eliminated 5 discrepancies found by Dialyzer in the
Appmon application.<BR>
Own Id: OTP-5633<BR>
</LI>
<LI>
The <CODE>c:i/0</CODE> function will now run in a paged mode if
there are more than 100 processes in the system. (Thanks
to Ulf Wiger.)<BR>
<CODE>erlang:system_info(process_count)</CODE> has been
optimized and does now return exactly the same value as
<CODE>length(processes())</CODE>. Previously
<CODE>erlang:system_info(process_count)</CODE> did not include
exiting processes which are included in
<CODE>length(processes())</CODE>.<BR>
The <CODE>+P</CODE> flag for <CODE>erl</CODE>, which sets the maximum
number of processes allowed to exist at the same, no longer
accepts values higher than 134217727. (You will still
probably run out of memory before you'll be able to reach
that limit.)<BR>
Own Id: OTP-5645 Aux Id: seq9984 <BR>
</LI>
</UL>
<A NAME="1.8"><!-- Empty --></A>
<H3>1.8 STDLIB 1.13.8</H3>
<A NAME="1.8.1"><!-- Empty --></A>
<H4>1.8.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
Very minor corrections in <CODE>beam_lib</CODE> and its
documentation.<BR>
Own Id: OTP-5589<BR>
</LI>
</UL>
<A NAME="1.8.2"><!-- Empty --></A>
<H4>1.8.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The <CODE>erlang:port_info/1</CODE> BIF is now documented.
Minor corrections of the documentation for
<CODE>erlang:port_info/2</CODE>.<BR>
Added a note to the documentation of the <CODE>math</CODE>
module that all functions are not available on all
platforms.<BR>
Added more information about the '<CODE>+c</CODE>' option in
the <CODE>erl</CODE> man page in the ERTS documentation.<BR>
Own Id: OTP-5555<BR>
</LI>
<LI>
The new <CODE>fun M:F/A</CODE> construct creates a fun that
refers to the latest version of <CODE>M:F/A</CODE>. This syntax is
meant to replace tuple funs <CODE>{M,F}</CODE> which have many
problems.<BR>
The new type test <CODE>is_function(Fun,A)</CODE> (which may be
used in guards) test whether <CODE>Fun</CODE> is a fun that can be
applied with <CODE>A</CODE> arguments. (Currently, <CODE>Fun</CODE> can
also be a tuple fun.)<BR>
Own Id: OTP-5584<BR>
</LI>
</UL>
<A NAME="1.9"><!-- Empty --></A>
<H3>1.9 STDLIB 1.13.7</H3>
<A NAME="1.9.1"><!-- Empty --></A>
<H4>1.9.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
<CODE>filelib:wildcard/2</CODE> was broken (it ignored its
second argument).<BR>
Also, <CODE>filelib:wildcard("Filename")</CODE> (where the
argument does not contain any meta-characters) would
always return <CODE>["Filename"]</CODE>. Corrected so that an
empty list will be returned if <CODE>"Filename"</CODE> does not
actually exist. (Same correction in
<CODE>filelib:wildcard/2</CODE>.) (This change is a slight
incompatibility.)<BR>
<CODE>filelib:wildcard/1,2</CODE> will generate a different
exception when given bad patterns such as <CODE>"{a,"</CODE>. The
exception used to be caused by
'<CODE>exit(missing_delimiter)</CODE>' but is now
'<CODE>erlang:error({badpattern,missing_delimiter})</CODE>'.<BR>
Own Id: OTP-5523 Aux Id: seq9824 <BR>
</LI>
</UL>
<A NAME="1.9.2"><!-- Empty --></A>
<H4>1.9.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
Further improvements of encrypted debug info: New option
<CODE>encrypt_debug_info</CODE> for compiler.<BR>
Own Id: OTP-5541 Aux Id: seq9837 <BR>
</LI>
</UL>
<A NAME="1.10"><!-- Empty --></A>
<H3>1.10 STDLIB 1.13.6</H3>
<A NAME="1.10.1"><!-- Empty --></A>
<H4>1.10.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
When opening a Dets table read only an attempt was
sometimes made to re-hash the table resulting in an error
message. This problem has been fixed.<BR>
Own Id: OTP-5487 Aux Id: OTP-4989 <BR>
</LI>
</UL>
<A NAME="1.10.2"><!-- Empty --></A>
<H4>1.10.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
It is now possible to encrypt the debug information in
Beam files, to help keep the source code secret. See the
documentation for <CODE>compile</CODE> on how to provide the key
for encrypting, and the documentation for <CODE>beam_lib</CODE>
on how to provide the key for decryption so that tools such
as the Debugger, <CODE>xref</CODE>, or <CODE>cover</CODE> can be used.
<BR>
The <CODE>beam_lib:chunks/2</CODE> functions now accepts an
additional chunk type <CODE>compile_info</CODE> to retrieve
the compilation information directly as a term. (Thanks
to Tobias Lindahl.)<BR>
Own Id: OTP-5460 Aux Id: seq9787 <BR>
</LI>
</UL>
<A NAME="1.11"><!-- Empty --></A>
<H3>1.11 STDLIB 1.13.5</H3>
<A NAME="1.11.1"><!-- Empty --></A>
<H4>1.11.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
Closing a Dets table kept in RAM would cause a crash if
the file could not be written. This problem has been
fixed by returning an error tuple.<BR>
Own Id: OTP-5402<BR>
</LI>
<LI>
<CODE>erl_pp</CODE> now correctly pretty-prints <CODE>fun F/A</CODE>.
<BR>
Own Id: OTP-5412<BR>
</LI>
<LI>
The Erlang shell failed if the compiler was not in the
code path. This problem has been fixed, but in order to
evaluate records the compiler is still needed.<BR>
Own Id: OTP-5435<BR>
</LI>
<LI>
Corrected the example in the documentation for
<CODE>ets:match/2</CODE>. Also clarified that
<CODE>ets:update_counter/3</CODE> updates the counter atomically.
(Thanks to Anders Svensson.)<BR>
Own Id: OTP-5452 Aux Id: seq9770, seq9789 <BR>
</LI>
</UL>
<A NAME="1.11.2"><!-- Empty --></A>
<H4>1.11.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The possibility to start the Erlang shell in parallel
with the rest of the system was reintroduced for
backwards compatibility in STDLIB 1.13.1. The flag to be
used for this is now called <CODE>async_shell_start</CODE> and has
been documented. New shells started from the JCL menu are
not syncronized with <CODE>init</CODE> anymore. This makes it
possible to start a new shell (e.g. for debugging purposes)
even if the initial shell has not come up.<BR>
Own Id: OTP-5406 Aux Id: OTP-5218 <BR>
</LI>
<LI>
The compiler will now produce warnings when using the
deprecated functions in the <CODE>snmp</CODE> module.<BR>
Own Id: OTP-5425
<BR>
</LI>
<LI>
The function <CODE>c:zi/0</CODE> has been removed. Use
<CODE>c:i/0</CODE> instead.<BR>
Own Id: OTP-5432<BR>
</LI>
<LI>
Corrected two minor bugs found by the Dialyzer:
Calling a parameterized module from a restricted shell
(i.e. if <CODE>shell:start_restricted/1</CODE> has been used)
would crash the shell evaluator. A debug printout in
<CODE>gen_fsm</CODE> had a clause that would never match; causing
less information to be printed.<BR>
And a somewhat more serious one also found by
Dialyzer: <CODE>rpc:yield/1</CODE> would crash unless the call
started by <CODE>rpc:async_call/4</CODE> had already finished;
<CODE>rpc:nb_yield(Key,infinity)</CODE> would also crash.<BR>
Cleaned up and removed redundant code found by
Dialyzer in <CODE>erlang:dmonitor_p/2</CODE>.<BR>
Own Id: OTP-5462<BR>
</LI>
</UL>
<A NAME="1.12"><!-- Empty --></A>
<H3>1.12 STDLIB 1.13.4</H3>
<A NAME="1.12.1"><!-- Empty --></A>
<H4>1.12.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
Bugs in the Erlang shell have been fixed.<BR>
Own Id: OTP-5327<BR>
</LI>
<LI>
Some dead code reported by Dialyzer was eliminated.<BR>
A bug in <CODE>dbg</CODE> when tracing to wrap trace files has
been corrected. It failed to delete any already existing
wrap trace files with the same names when starting a new
wrap trace.<BR>
Own Id: OTP-5329<BR>
</LI>
<LI>
The linter could output invalid warnings about bit
patterns in record initializations. This problem has been
fixed.<BR>
Own Id: OTP-5338<BR>
</LI>
<LI>
<CODE>ordsets:is_set(NoList)</CODE>, where <CODE>NoList</CODE> is any
term except a list, would crash. For consistency with
<CODE>sets:is_set/1</CODE> and <CODE>gb_sets:is_set/1</CODE>, it now
returns <CODE>false</CODE>.<BR>
Own Id: OTP-5341<BR>
</LI>
<LI>
A BIF <CODE>erlang:raise/3</CODE> has been added. See the manual
for details. It is intended for internal system programming
only, advanced error handling.<BR>
Own Id: OTP-5376 Aux Id: OTP-5257 <BR>
</LI>
</UL>
<A NAME="1.12.2"><!-- Empty --></A>
<H4>1.12.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The <CODE>deprecated</CODE> attribute is now checked by the
linter. See <CODE>xref(3)</CODE> for a description of the
<CODE>deprecated</CODE> attribute.<BR>
Own Id: OTP-5276<BR>
</LI>
<LI>
The restricted shell will now indicate if the return
value from a user predicate is on an incorrect form.<BR>
Own Id: OTP-5335<BR>
</LI>
</UL>
<A NAME="1.13"><!-- Empty --></A>
<H3>1.13 STDLIB 1.13.3</H3>
<A NAME="1.13.1"><!-- Empty --></A>
<H4>1.13.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
Bugs concerning unused and shadowed variables have been
fixed in the linter.<BR>
Own Id: OTP-5091<BR>
</LI>
<LI>
A bug in the evaluator that caused the shell to choke on
bit syntax expressions has been fixed.<BR>
Own Id: OTP-5237<BR>
</LI>
<LI>
<CODE>io:format/2</CODE> et.al no longer crashes for some
combinations of precision and value for format character
"g". Previously it crashed if the precision P was 4 or lower
and the absolute value of the float to print was lower
than 10^4 but 10^(P-1) or higher. Now it will not crash
depending on the value of the float.<BR>
Own Id: OTP-5263<BR>
</LI>
<LI>
Bugs in the handling of the bit syntax have been fixed in
the Erlang shell.<BR>
Own Id: OTP-5269<BR>
</LI>
<LI>
<CODE>gb_sets:del_element/2</CODE> was changed to do the
same as <CODE>gb_sets:delete_any/2</CODE> which was the
original intention, not as <CODE>gb_sets:delete/2</CODE>. Code
that relies on <CODE>gb_sets:del_element/2</CODE> causing an
error if the element does not exist must be changed to
call <CODE>gb_sets:delete/2</CODE> instead.<BR>
The documentation was also updated to explicitly
document functions that were only referred to as
'aliases' of a documented function. Also, a list of all
functions common to the <CODE>gb_sets</CODE>, <CODE>sets</CODE>, and
<CODE>ordsets</CODE> was added.<BR>
*** POTENTIAL INCOMPATIBILITY ***<BR>
Own Id: OTP-5277<BR>
</LI>
<LI>
Debug messages have been removed from the QLC module.<BR>
Own Id: OTP-5283<BR>
</LI>
</UL>
<A NAME="1.13.2"><!-- Empty --></A>
<H4>1.13.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The size of continuations returned from
<CODE>dets:match/1,3</CODE>, <CODE>dets:match_object/1,3</CODE>, and
<CODE>dets:select/1,3</CODE> has been reduced. This affects the
amount of data Mnesia sends between nodes while
evaluating QLC queries.<BR>
Own Id: OTP-5232<BR>
</LI>
</UL>
<A NAME="1.14"><!-- Empty --></A>
<H3>1.14 STDLIB 1.13.2</H3>
<A NAME="1.14.1"><!-- Empty --></A>
<H4>1.14.1 Improvements and New Features</H4>
<P>
<UL>
<LI>
The <CODE>-rsh</CODE> switch for starting a remote shell
(introduced with OTP-5210) clashed with an already existing
switch used by <CODE>slave</CODE>. Therefore the switch for
the remote shell is now instead named <CODE>-remsh</CODE>.<BR>
Own Id: OTP-5248 Aux Id: OTP-5210 <BR>
</LI>
</UL>
<A NAME="1.15"><!-- Empty --></A>
<H3>1.15 STDLIB 1.13.1</H3>
<A NAME="1.15.1"><!-- Empty --></A>
<H4>1.15.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
The Pman 'trace shell' functionality was broken as has
now been fixed. Furthermore, Pman could not correctly
find the pid of the active shell if more than one shell
process was running on the node. This has also been
corrected.<BR>
Own Id: OTP-5191<BR>
</LI>
<LI>
When the undocumented feature "parameterized modules" was
used, the ?MODULE macro did not work correctly.<BR>
Own Id: OTP-5224<BR>
</LI>
</UL>
<A NAME="1.15.2"><!-- Empty --></A>
<H4>1.15.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
You can now start Erlang with the <CODE>-rsh</CODE> flag which
gives you a remote initial shell instead of a local one.
Example:<BR>
<PRE>
erl -sname this_node -rsh other_node@other_host
</PRE>
Own Id: OTP-5210<BR>
</LI>
<LI>
The man page for the <CODE>lists</CODE> module has been updated
with decscription of the new <CODE>zip</CODE>, <CODE>unzip</CODE>,
and <CODE>partition/2</CODE> functions.<BR>
Own Id: OTP-5213<BR>
</LI>
<LI>
The top level group leader used to be listed as job #1 in
the job list in JCL mode. Since there is no shell
associated with this process that can be connected to, it
will no longer be listed.<BR>
Own Id: OTP-5214<BR>
</LI>
<LI>
The possibility to start the Erlang shell in parallel
with the rest of the system has been reintroduced for
backwards compatibility. Note that this old behaviour is
error prone and should not be used unless for some reason
necessary.<BR>
Own Id: OTP-5218 Aux Id: seq9534 <BR>
</LI>
<LI>
The <CODE>shell</CODE> commands <CODE>rr/1,2,3</CODE> now accepts
wildcards when reading record definitions from BEAM
files.<BR>
Own Id: OTP-5226<BR>
</LI>
</UL>
<CENTER>
<HR>
<SMALL>
Copyright © 1991-2006
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>
|