mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-11 00:00:49 +02:00
(SLIB): Add notes on delete-file, provided? and open-file
overridden by ice-9 slib module.
This commit is contained in:
parent
a015df9b8d
commit
abc358f9c5
1 changed files with 34 additions and 4 deletions
|
@ -27,11 +27,41 @@ slib, The SLIB Manual}). For example,
|
||||||
@result{} #t
|
@result{} #t
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
Note that the following Guile core functions are overridden by
|
||||||
|
@code{(ice-9 slib)}, to implement SLIB specified semantics.
|
||||||
|
|
||||||
|
@table @code
|
||||||
|
@item delete-file
|
||||||
|
@findex delete-file
|
||||||
|
Returns @code{#t} for success or @code{#f} for failure
|
||||||
|
(@pxref{Input/Output,,, slib, The SLIB Manual}), as opposed to the
|
||||||
|
Guile core version unspecified for success and throwing an error for
|
||||||
|
failure (@pxref{File System}).
|
||||||
|
|
||||||
|
@c `provide' is also exported by ice-9 slib, but its definition in
|
||||||
|
@c slib require.scm is the same as guile boot-9.scm, so believe
|
||||||
|
@c nothing needs to be said about that.
|
||||||
|
|
||||||
|
@item provided?
|
||||||
|
@findex provided?
|
||||||
|
Accepts a feature specification containing @code{and} and @code{or}
|
||||||
|
forms combining symbols (@pxref{Feature,,, slib, The SLIB Manual}), as
|
||||||
|
opposed to the Guile core taking only plain symbols (@pxref{Feature
|
||||||
|
Manipulation}).
|
||||||
|
|
||||||
|
@item open-file
|
||||||
|
@findex open-file
|
||||||
|
Takes a symbol @code{r}, @code{rb}, @code{w} or @code{wb} for the open
|
||||||
|
mode (@pxref{Input/Output,,, slib, The SLIB Manual}), as opposed to
|
||||||
|
the Guile core version taking a string (@pxref{File Ports}).
|
||||||
|
|
||||||
|
@item system
|
||||||
@findex system
|
@findex system
|
||||||
Note that @code{(ice-9 slib)} provides a new definition of
|
Returns a plain exit code 0 to 255 (@pxref{System Interface,,, slib,
|
||||||
@code{system}, one giving a plain exit code return value, as per the
|
The SLIB Manual}), as opposed to the Guile core version returning a
|
||||||
SLIB specification (@pxref{System Interface,,, slib, The SLIB
|
wait status that must be examined with @code{status:exit-val} etc
|
||||||
Manual}).
|
(@pxref{Processes}).
|
||||||
|
@end table
|
||||||
|
|
||||||
@menu
|
@menu
|
||||||
* SLIB installation::
|
* SLIB installation::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue