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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.2 -->
<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.13.2</H3>
<A NAME="1.1.1"><!-- Empty --></A>
<H4>1.1.1 Improvements and New Features</H4>
<P>
<UL>
<LI>
The -rsh switch for starting a remote shell (introduced
with OTP-5210) clashed with an already existing switch
used by slave. Therefore the switch for the remote shell
is now instead named -remsh.
<BR>
Own Id: OTP-5248 Aux Id: OTP-5210
<BR>
</LI>
</UL>
<A NAME="1.2"><!-- Empty --></A>
<H3>1.2 Stdlib 1.13.1</H3>
<A NAME="1.2.1"><!-- Empty --></A>
<H4>1.2.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.2.2"><!-- Empty --></A>
<H4>1.2.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
You can now start Erlang with the -rsh flag which gives
you a remote initial shell instead of a local one.
Example: erl -sname this_node -rsh other_node@other_host
<BR>
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 parallell
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>
<A NAME="1.3"><!-- Empty --></A>
<H3>1.3 Stdlib 1.13</H3>
<A NAME="1.3.1"><!-- Empty --></A>
<H4>1.3.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
gen_server:s internal function get_parent, called by
gen_server:enter_loop/[4,5], now returns the pid of
parents that are registered processes, instead of
returning their name. The reason for this is that
gen_server relies on that the parent is represented as a
pid. This error in get_parent/0 had the effect that the
terminate function of the child was not run when it was
shutdown.
<BR>
Own Id: OTP-4820 Aux Id: seq8170
<BR>
</LI>
<LI>
For the bit syntax, when matching with a size field that
is bound during the same matching, a warning for unused
variable was emitted. This bug has been fixed.
<BR>
Own Id: OTP-4858
<BR>
</LI>
<LI>
When parsing a badly formed file <CODE>epp</CODE> hangs. This
problem has been fixed.
<BR>
Own Id: OTP-4871 Aux Id: OTP-4870
<BR>
</LI>
<LI>
Bugs concerning guards have been fixed in the Erlang
interpreter.
<BR>
Own Id: OTP-4885
<BR>
</LI>
<LI>
The linter now checks the record name when calling the
function <CODE>erlang:is_record/2</CODE>.
<BR>
Own Id: OTP-4886
<BR>
</LI>
<LI>
Guards of mach specifications are corrected to resemble
the semantics of guards in real code more closely. The
implementation now corresponds to the documentation in
erts users guide. The following things are corrected:
<BR>
<UL>
<LI>
Guard sematics was wrong when it came to
logical operators and exceptions. {'or',
{'is_integer','$1'}, {'or', '$1', '$1'}} evaluated to
true with '$1' bound to an integer.
</LI>
<LI>
Unary +
and - was not implemented
</LI>
<LI>
Calling operators
as Bif's was not supported by ets/dbg:fun2ms
(erlang:'or'(A,B) etc)
</LI>
<LI>
Old typetests (like
integer(X) instead of is_integer(X)) was not supported by
ets/dbg:fun2ms
</LI>
<LI>
Semicolon (;) in guards was
not supported by ets/dbg:fun2ms
</LI>
</UL>
*** POTENTIAL INCOMPATIBILITY ***
<BR>
Own Id: OTP-4927
<BR>
</LI>
<LI>
A bug that could cause a crash has been fixed in the
<CODE>file_sorter</CODE> module. The crash could only occur
when sorting or merging to a file and the input function
returned <CODE>{end_of_input, Value}</CODE>.
<BR>
Own Id: OTP-5009
<BR>
</LI>
<LI>
A function clause exit in filelib:fold_files/5 has been
fixed.
<BR>
Own Id: OTP-5137
<BR>
</LI>
<LI>
filelib:fold_files/5 has been fixed to not include
directories that match the regular expression in the
result. In this process, filelib:is_regular/1 has been
added to the module. WARNING the behaviour of
filelib:fold_files/5 has also been changed so the regexp
match is tried not on the full name, but locally in each
traversed directory.
<BR>
Own Id: OTP-5171 Aux Id: OTP-5128
<BR>
</LI>
</UL>
<A NAME="1.3.2"><!-- Empty --></A>
<H4>1.3.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The initial shell process started in parallell with the
init boot process. This made it possible to pipe commands
to the shell that got evaluated before the system had
booted properly. Also the shell was normally accessible
before .erlang had been evaluated and this caused
problems especially related to code loading. This has now
been fixed so that the initial shell is not accessible
until after the init boot routine has finished and
.erlang has been evaluated. Note that the shell starts
before any -s arguments are executed.
<BR>
Own Id: OTP-4877
<BR>
</LI>
<LI>
It is now possible to compile files with erlc without
getting a lot of (for compilation) unneccessary code
loaded and executed (like distribution, inet config,
etc). erlc now also calls erl with <CODE>-boot
start_clean</CODE> (so that sasl is not started even if
<CODE>start_sasl</CODE> is default boot script).
<BR>
Own Id: OTP-4878
<BR>
</LI>
<LI>
Dets tables can now be opened or closed in parallel. In
particular, if some table is being repaired, other tables
can still be opened or closed.
<BR>
Own Id: OTP-4908
<BR>
</LI>
<LI>
The new STDLIB module <CODE>qlc</CODE> implements a query
language with a list comprehension syntax completely
embedded in Erlang. There is support for reading data
from ETS, Dets, and Mnesia tables as well as for defining
other sources of data. For easy testing queries can be
stated in the Erlang shell. The <CODE>qlc</CODE> module aims at
replacing Mnemosyne. See <CODE>qlc(3)</CODE> for details and
examples.
<BR>
Own Id: OTP-5043
<BR>
</LI>
<LI>
Some support for records has been added to the Erlang
shell. There are commands for reading record definitions
from files and for manipulating record definitions in the
shell. The record syntax can be used in the shell and
return values are printed as records when possible using
the records definitions known to the shell. New commands
in the shell are <CODE>rd/2</CODE>, <CODE>rf/0,1</CODE>,
<CODE>rl/0,1</CODE>, <CODE>rp/1</CODE>, and <CODE>rr/1,2,3</CODE>. Existing
functions in <CODE>user_default.erl</CODE> with any of these
names need to be renamed. See <CODE>shell(3)</CODE> for further
details.
<BR>
*** POTENTIAL INCOMPATIBILITY ***
<BR>
Own Id: OTP-5063
<BR>
</LI>
<LI>
A new function, string:to_integer/1, has been added.
<BR>
Own Id: OTP-5081 Aux Id: OTP-5136
<BR>
</LI>
<LI>
The new function <CODE>dets:repair_continuation/2</CODE> can be
used for restoring an opaque continuation returned by
<CODE>dets:select/1</CODE> or <CODE>dets:select/3</CODE> if the
continuation has passed through the external term format
(been sent between nodes or stored on disk).
<BR>
Own Id: OTP-5126
<BR>
</LI>
<LI>
A new function, string:to_float/1, has been added.
<BR>
Own Id: OTP-5136 Aux Id: OTP-5081
<BR>
</LI>
<LI>
Test cases have been added for string.
<BR>
Own Id: OTP-5138
<BR>
</LI>
</UL>
<A NAME="1.4"><!-- Empty --></A>
<H3>1.4 Stdlib 1.12.8</H3>
<A NAME="1.4.1"><!-- Empty --></A>
<H4>1.4.1 Improvements and New Features</H4>
<P>
<UL>
<LI>
The functions ets:insert_new/2 and dets:insert_new/2 are
added. Please consult the manual pages for details.
<BR>
Own Id: OTP-5075
<BR>
</LI>
<LI>
New function: proc_lib:hibernate/3. Processes spawned
using proc_lib (also indirectly, such as gen_server
process), should use this function instead of the BIF
erlang:hibernate/3 directly to ensure that the exception
handler for the process continues to work when the
process is awaken.
<BR>
Own Id: OTP-5077
<BR>
</LI>
</UL>
<A NAME="1.5"><!-- Empty --></A>
<H3>1.5 Stdlib 1.12.6</H3>
<A NAME="1.5.1"><!-- Empty --></A>
<H4>1.5.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
If many files or sockets were open (more than 256),
beam_lib operations could fail. Corrected.
<BR>
Own Id: OTP-5046 Aux Id: OTP-4997, seq8590
<BR>
</LI>
</UL>
<A NAME="1.6"><!-- Empty --></A>
<H3>1.6 Stdlib 1.12.5</H3>
<A NAME="1.6.1"><!-- Empty --></A>
<H4>1.6.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
When opening a Dets table read only an attempt was made
to re-hash the table resulting in an error message. This
problem has been fixed.
<BR>
Own Id: OTP-4989 Aux Id: seq8536
<BR>
</LI>
</UL>
<A NAME="1.6.2"><!-- Empty --></A>
<H4>1.6.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
If a gen_server, gen_event or gen_fsm process exits with
{undef,[{M,F,A}|...]}, the error report will now state if
the function call failed because the module could not be
loaded or because the function was not exported.
<BR>
Own Id: OTP-4952 Aux Id: OTP-4925
<BR>
</LI>
</UL>
<A NAME="1.7"><!-- Empty --></A>
<H3>1.7 Stdlib 1.12.4</H3>
<A NAME="1.7.1"><!-- Empty --></A>
<H4>1.7.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
The shell function <CODE>c:regs()</CODE> did crash if there was
a registered port among the registered names. This is now
corrected.
<BR>
Own Id: OTP-4890
<BR>
</LI>
<LI>
A bug has been fixed in <CODE>Dets</CODE>: not all objects were
always visible in tables with more than 131072 keys
<BR>
Own Id: OTP-4906
<BR>
</LI>
<LI>
A bug has been fixed in <CODE>Dets</CODE>: when trying to
repair a version 9 table, a <CODE>not_a_dets_file</CODE> error
message was returned unnecessarily often.
<BR>
Own Id: OTP-4907
<BR>
</LI>
</UL>
<A NAME="1.7.2"><!-- Empty --></A>
<H4>1.7.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
Starting Erlang with the +Bi flag (to ignore ^C), now
also disables the quit ('q') option in the JCL menu.
<BR>
Own Id: OTP-4897
<BR>
</LI>
</UL>
<A NAME="1.8"><!-- Empty --></A>
<H3>1.8 Stdlib 1.12.3</H3>
<A NAME="1.8.1"><!-- Empty --></A>
<H4>1.8.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
A bug in erl_scan caused the compiler to hang when
end-of-file in a comment was encountered. This is now
corrected.
<BR>
Own Id: OTP-4787
<BR>
</LI>
<LI>
The linter now reports errors for unsafe variables when
the option <CODE>nowarn_unused_vars</CODE> is given.
<BR>
Own Id: OTP-4831 Aux Id: seq8202
<BR>
</LI>
<LI>
<CODE>gen_server:cast/2</CODE> now crashes for invalid
arguments.
<BR>
<CODE>gen_server:abcast/2-3</CODE> now crashes for invalid
arguments. The behaviour when casting to the name
<CODE>global</CODE> has been corrected. Previously,
<CODE>gen_server:abcast(global,[node@host])</CODE> tried to
cast to the globally registered name <CODE>node@host</CODE>,
which is more of a bug than less. Now such a call will
cast to the registered name <CODE>global</CODE> at the node
<CODE>node@host</CODE> as (probably) expected.
<BR>
An <CODE>rpc:call/5</CODE> and <CODE>rpc:block_call/5</CODE>
having a timeout argument has been added.
<BR>
<CODE>rpc:abcast/2-3</CODE> has been improved not to get
stuck waiting for connection setup if the remote node is
not connected. In this case the send is spawned off to a
temporary process.
<BR>
Two typos in the docs for module <CODE>calendar</CODE> has
been corrected thanks to Bengt Kleberg.
<BR>
<BR>
*** POTENTIAL INCOMPATIBILITY ***
<BR>
Own Id: OTP-4844 Aux Id: seq8226
<BR>
</LI>
</UL>
<A NAME="1.8.2"><!-- Empty --></A>
<H4>1.8.2 Improvements and New Features</H4>
<P>
<UL>
<LI>
The f/1 shell command did not work correctly with
restricted shell.
<BR>
Own Id: OTP-4818
<BR>
</LI>
</UL>
<A NAME="1.9"><!-- Empty --></A>
<H3>1.9 Stdlib 1.12.2</H3>
<A NAME="1.9.1"><!-- Empty --></A>
<H4>1.9.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
gen_server:s internal function get_parent, called by
gen_server:enter_loop/[4,5], now returns the pid of
parents that are registered processes, instead of
returning their name. The reason for this is that
gen_server relies on that the parent is represented as a
pid. This error in get_parent/0 had the effect that the
terminate function of the child was not run when it was
shutdown.
<BR>
Own Id: OTP-4820 Aux Id: seq8170
<BR>
</LI>
</UL>
<A NAME="1.10"><!-- Empty --></A>
<H3>1.10 Stdlib 1.12.1</H3>
<A NAME="1.10.1"><!-- Empty --></A>
<H4>1.10.1 Fixed Bugs and Malfunctions</H4>
<P>
<UL>
<LI>
The code server could hang if invoked early in the
startup. For example if the emulator was started with "-s
file eval Filename" and Filename contained a call to
code:add_patha/1 the code server accidentally tried to
execute code in an unloaded module from inside the code
that loaded a module - hence hangup. This bug has now
been fixed. <BR>
Note! Starting erlang through code loading
from a remote erlang boot server will not work after this
patch. It will be fixed in a later patch. Rumours has it
that remote boot server code loading did not work before
this patch either. It is not a commonly used feature.
<BR>
*** POTENTIAL INCOMPATIBILITY ***
<BR>
Own Id: OTP-4802 Aux Id: seq8314
<BR>
</LI>
</UL>
<CENTER>
<HR>
<SMALL>
Copyright © 1991-2004
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>
|