CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 07/02/28 21:51:37
Index: doc/m4.texinfo
===================================================================
RCS file: /sources/m4/m4/doc/m4.texinfo,v
retrieving revision 1.1.1.1.2.117
retrieving revision 1.1.1.1.2.118
diff -u -b -r1.1.1.1.2.117 -r1.1.1.1.2.118
--- doc/m4.texinfo 28 Feb 2007 14:35:28 -0000 1.1.1.1.2.117
+++ doc/m4.texinfo 28 Feb 2007 21:51:36 -0000 1.1.1.1.2.118
@@ -1691,6 +1691,20 @@
@result{}1
@end example
+Remember that @samp{#} defaults to the comment character; if you forget
+quotes to inhibit the comment behavior, your macro definition may not
+end where you expected.
+
[EMAIL PROTECTED]
+dnl Attempt to define a macro to just `$#'
+define(underquoted, $#)
+oops)
[EMAIL PROTECTED]
+underquoted
[EMAIL PROTECTED])
[EMAIL PROTECTED]
[EMAIL PROTECTED] example
+
The notation @code{$*} can be used in the expansion text to denote all
the actual arguments, unquoted, with commas in between. For example
@@ -4750,14 +4764,14 @@
All binary operators, except exponentiation, are left associative. C
operators that perform variable assignment, such as @samp{+=} or
[EMAIL PROTECTED], are forbidden by @acronym{POSIX}, since @code{eval} only
-operates on constants, not variables. Attempting to use them results
-in an error. However, since traditional implementations treated
[EMAIL PROTECTED] as an undocumented alias for @samp{==} as opposed to an
-assignment operator, this usage is supported as a special case. Be
-aware that a future version of @acronym{GNU} M4 may support assignment
-semantics as an extension when @acronym{POSIX} mode is not requested,
-and that using @samp{=} to check equality is not portable.
[EMAIL PROTECTED], are not implemented, since @code{eval} only operates on
+constants, not variables. Attempting to use them results in an error.
+However, since traditional implementations treated @samp{=} as an
+undocumented alias for @samp{==} as opposed to an assignment operator,
+this usage is supported as a special case. Be aware that a future
+version of @acronym{GNU} M4 may support assignment semantics as an
+extension when @acronym{POSIX} mode is not requested, and that using
[EMAIL PROTECTED] to check equality is not portable.
@comment status: 1
@example