434 |
|
|
435 |
Note that @code{scm_init_guile} does not inform Guile about the command |
Note that @code{scm_init_guile} does not inform Guile about the command |
436 |
line arguments that should be returned by the Scheme function |
line arguments that should be returned by the Scheme function |
437 |
@code{comamnd-line}. You can use @code{scm_set_program_arguments} to do |
@code{command-line}. You can use @code{scm_set_program_arguments} to do |
438 |
this. |
this. |
439 |
@end deftypefun |
@end deftypefun |
440 |
|
|
595 |
inconvenient in this case and it would in fact make the life of the |
inconvenient in this case and it would in fact make the life of the |
596 |
users of your new features needlessly hard. |
users of your new features needlessly hard. |
597 |
|
|
598 |
@c [[ the following is probably a bit longwinded ]] |
@c [[ the following is probably a bit long-winded ]] |
599 |
|
|
600 |
For example, suppose that there is a program @code{guile-db} that is a |
For example, suppose that there is a program @code{guile-db} that is a |
601 |
version of Guile with additional features for accessing a database. |
version of Guile with additional features for accessing a database. |
605 |
Guile with access to the popular Gtk+ toolkit for graphical user |
Guile with access to the popular Gtk+ toolkit for graphical user |
606 |
interfaces. People who want to write GUIs in Scheme would have to use |
interfaces. People who want to write GUIs in Scheme would have to use |
607 |
@code{guile-gtk}. Now, what happens when you want to write a Scheme |
@code{guile-gtk}. Now, what happens when you want to write a Scheme |
608 |
application that uses a GUI to let the user accessa a database? You |
application that uses a GUI to let the user access a database? You |
609 |
would have to write a @emph{third} program that incorporates both the |
would have to write a @emph{third} program that incorporates both the |
610 |
database stuff and the GUI stuff. This might not be easy (because |
database stuff and the GUI stuff. This might not be easy (because |
611 |
@code{guile-gtk} might be a quite obscure program, say) and taking this |
@code{guile-gtk} might be a quite obscure program, say) and taking this |
620 |
|
|
621 |
You write the new primitive procedures and data types in the normal |
You write the new primitive procedures and data types in the normal |
622 |
fashion, and link them into a shared library instead of into a |
fashion, and link them into a shared library instead of into a |
623 |
standalone program. The shared library can then be loaded dynamically |
stand-alone program. The shared library can then be loaded dynamically |
624 |
by Guile. |
by Guile. |
625 |
|
|
626 |
@menu |
@menu |
701 |
composition of complete programs from largely independent parts. |
composition of complete programs from largely independent parts. |
702 |
|
|
703 |
(Although the module system implementation is in flux, feel free to use it |
(Although the module system implementation is in flux, feel free to use it |
704 |
anyway. Guile will provide reasonable backwards compatability.) |
anyway. Guile will provide reasonable backwards compatibility.) |
705 |
|
|
706 |
Details on the module system beyond this introductory material can be found in |
Details on the module system beyond this introductory material can be found in |
707 |
@xref{Modules}. |
@xref{Modules}. |
765 |
and variables which are exported from a module adds documentation to the |
and variables which are exported from a module adds documentation to the |
766 |
source and specifies the interface a module provides. |
source and specifies the interface a module provides. |
767 |
|
|
768 |
In Guile, you can create new modules and switch to exisiting modules in |
In Guile, you can create new modules and switch to existing modules in |
769 |
order to add bindings to them using the syntactic form |
order to add bindings to them using the syntactic form |
770 |
@code{define-module}. |
@code{define-module}. |
771 |
|
|
862 |
packages and documentation you might need or find interesting. |
packages and documentation you might need or find interesting. |
863 |
|
|
864 |
@menu |
@menu |
865 |
* The Basic Guile Package:: |
* The Basic Guile Package:: |
866 |
* Packages not shipped with Guile:: |
* Packages not shipped with Guile:: |
867 |
@end menu |
@end menu |
868 |
|
|
869 |
|
|
966 |
|
|
967 |
Whenever you have found a bug in Guile you are encouraged to report it |
Whenever you have found a bug in Guile you are encouraged to report it |
968 |
to the Guile developers, so they can fix it. They may also be able to |
to the Guile developers, so they can fix it. They may also be able to |
969 |
suggest workarounds when it is not possible for you to apply the bugfix |
suggest workarounds when it is not possible for you to apply the bug-fix |
970 |
or install a new version of Guile yourself. |
or install a new version of Guile yourself. |
971 |
|
|
972 |
Before sending in bug reports, please check with the following list that |
Before sending in bug reports, please check with the following list that |
974 |
|
|
975 |
@itemize @bullet |
@itemize @bullet |
976 |
@item |
@item |
977 |
Whenever documentation and actual behaviour differ, you have certainly |
Whenever documentation and actual behavior differ, you have certainly |
978 |
found a bug, either in the documentation or in the program. |
found a bug, either in the documentation or in the program. |
979 |
|
|
980 |
@item |
@item |
1014 |
$ guile --version |
$ guile --version |
1015 |
Guile 1.4.1 |
Guile 1.4.1 |
1016 |
Copyright (c) 1995, 1996, 1997, 2000 Free Software Foundation |
Copyright (c) 1995, 1996, 1997, 2000 Free Software Foundation |
1017 |
Guile may be distributed under the terms of the GNU General Public Licence; |
Guile may be distributed under the terms of the GNU General Public License; |
1018 |
certain other uses are permitted as well. For details, see the file |
certain other uses are permitted as well. For details, see the file |
1019 |
`COPYING', which is included in the Guile distribution. |
`COPYING', which is included in the Guile distribution. |
1020 |
There is no warranty, to the extent permitted by law. |
There is no warranty, to the extent permitted by law. |