97 lines
3.7 KiB
HTML
97 lines
3.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<!-- This manual documents Guile version 3.0.10.
|
||
|
|
||
|
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
|
||
|
Inc.
|
||
|
|
||
|
Copyright (C) 2021 Maxime Devos
|
||
|
|
||
|
Copyright (C) 2024 Tomas Volf
|
||
|
|
||
|
|
||
|
Permission is granted to copy, distribute and/or modify this document
|
||
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
||
|
any later version published by the Free Software Foundation; with no
|
||
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
||
|
copy of the license is included in the section entitled "GNU Free
|
||
|
Documentation License." -->
|
||
|
<title>Generic Function Invocation (Guile Reference Manual)</title>
|
||
|
|
||
|
<meta name="description" content="Generic Function Invocation (Guile Reference Manual)">
|
||
|
<meta name="keywords" content="Generic Function Invocation (Guile Reference Manual)">
|
||
|
<meta name="resource-type" content="document">
|
||
|
<meta name="distribution" content="global">
|
||
|
<meta name="Generator" content=".texi2any-real">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
|
|
||
|
<link href="index.html" rel="start" title="Top">
|
||
|
<link href="Concept-Index.html" rel="index" title="Concept Index">
|
||
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
||
|
<link href="The-Metaobject-Protocol.html" rel="up" title="The Metaobject Protocol">
|
||
|
<link href="Generic-Function-Internals.html" rel="prev" title="Generic Function Internals">
|
||
|
<style type="text/css">
|
||
|
<!--
|
||
|
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
|
||
|
span:hover a.copiable-link {visibility: visible}
|
||
|
ul.mark-bullet {list-style-type: disc}
|
||
|
-->
|
||
|
</style>
|
||
|
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body lang="en">
|
||
|
<div class="subsection-level-extent" id="Generic-Function-Invocation">
|
||
|
<div class="nav-panel">
|
||
|
<p>
|
||
|
Previous: <a href="Generic-Function-Internals.html" accesskey="p" rel="prev">Generic Function Internals</a>, Up: <a href="The-Metaobject-Protocol.html" accesskey="u" rel="up">The Metaobject Protocol</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
||
|
</div>
|
||
|
<hr>
|
||
|
<h4 class="subsection" id="Generic-Function-Invocation-1"><span>8.11.10 Generic Function Invocation<a class="copiable-link" href="#Generic-Function-Invocation-1"> ¶</a></span></h4>
|
||
|
|
||
|
<p>There is a detailed and customizable protocol involved in the process of
|
||
|
invoking a generic function — i.e., in the process of deciding which
|
||
|
of the generic function’s methods are applicable to the current
|
||
|
arguments, and which one of those to apply. Here is a summary diagram
|
||
|
of the generic functions involved.
|
||
|
</p>
|
||
|
<p><code class="code">apply-generic</code> (generic)
|
||
|
</p>
|
||
|
<ul class="itemize mark-bullet">
|
||
|
<li><code class="code">no-method</code> (generic)
|
||
|
|
||
|
</li><li><code class="code">compute-applicable-methods</code> (generic)
|
||
|
|
||
|
</li><li><code class="code">sort-applicable-methods</code> (generic)
|
||
|
|
||
|
<ul class="itemize mark-bullet">
|
||
|
<li><code class="code">method-more-specific?</code> (generic)
|
||
|
</li></ul>
|
||
|
|
||
|
</li><li><code class="code">apply-methods</code> (generic)
|
||
|
|
||
|
<ul class="itemize mark-bullet">
|
||
|
<li><code class="code">apply-method</code> (generic)
|
||
|
|
||
|
</li><li><code class="code">no-next-method</code> (generic)
|
||
|
</li></ul>
|
||
|
|
||
|
</li><li><code class="code">no-applicable-method</code>
|
||
|
</li></ul>
|
||
|
|
||
|
<p>We do not yet have full documentation for these. Please refer to the
|
||
|
code (<samp class="file">oop/goops.scm</samp>) for details.
|
||
|
</p>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|