summaryrefslogtreecommitdiff
path: root/pod/perlxs.pod
diff options
context:
space:
mode:
authorJohn Peacock <jpeacock@rowman.com>2002-09-01 11:00:12 -0400
committerhv <hv@crypt.org>2002-09-04 12:39:42 +0000
commit30d6fba6aa7467c9f9b076801c9a8093e7735500 (patch)
treeff10243d7b984cdc3e6258d3cf9aa4ffaf234beb /pod/perlxs.pod
parent6b0bc4bb26281ceacf282d9bc4688174bd747b56 (diff)
downloadperl-30d6fba6aa7467c9f9b076801c9a8093e7735500.tar.gz
Re: [PATCH] Correct/completes Overloading in XS mods
Message-ID: <3D7263BC.9020608@rowman.com> p4raw-id: //depot/perl@17832
Diffstat (limited to 'pod/perlxs.pod')
-rw-r--r--pod/perlxs.pod17
1 files changed, 17 insertions, 0 deletions
diff --git a/pod/perlxs.pod b/pod/perlxs.pod
index 15a7888697..0b6659631a 100644
--- a/pod/perlxs.pod
+++ b/pod/perlxs.pod
@@ -1260,6 +1260,23 @@ characters, you must type the parameter without quoting, seperating
multiple overloads with whitespace. Note that "" (the stringify
overload) should be entered as \"\" (i.e. escaped).
+=head2 The FALLBACK: Keyword
+
+In addition to the OVERLOAD keyword, if you need to control how
+Perl autogenerates missing overloaded operators, you can set the
+FALLBACK keyword in the module header section, like this:
+
+ MODULE = RPC PACKAGE = RPC
+
+ FALLBACK: TRUE
+ ...
+
+where FALLBACK can take any of the three values TRUE, FALSE, or
+UNDEF. If you do not set any FALLBACK value when using OVERLOAD,
+it defaults to UNDEF. FALLBACK is not used except when one or
+more functions using OVERLOAD have been defined. Please see
+L<overload/Fallback> for more details.
+
=head2 The INTERFACE: Keyword
This keyword declares the current XSUB as a keeper of the given