api-deprecated.texi 1.2 KB

123456789101112131415161718192021222324252627282930
  1. @c -*-texinfo-*-
  2. @c This is part of the GNU Guile Reference Manual.
  3. @c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2010
  4. @c Free Software Foundation, Inc.
  5. @c See the file guile.texi for copying conditions.
  6. @node Deprecation
  7. @section Deprecation
  8. From time to time functions and other features of Guile become obsolete.
  9. Guile's @dfn{deprecation} is a mechanism that can help you cope with
  10. this.
  11. When you use a feature that is deprecated, you will likely get a warning
  12. message at run-time. Also, if you have a new enough toolchain, using a
  13. deprecated function from @code{libguile} will cause a link-time warning.
  14. The primary source for information about just what interfaces are
  15. deprecated in a given release is the file @file{NEWS}. That file also
  16. documents what you should use instead of the obsoleted things.
  17. The file @file{README} contains instructions on how to control the
  18. inclusion or removal of the deprecated features from the public API of
  19. Guile, and how to control the deprecation warning messages.
  20. The idea behind this mechanism is that normally all deprecated
  21. interfaces are available, but you get feedback when compiling and
  22. running code that uses them, so that you can migrate to the newer APIs
  23. at your leisure.