[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/doc/m4.texinfo,v [branch-1_4]
From: |
Eric Blake |
Subject: |
Changes to m4/doc/m4.texinfo,v [branch-1_4] |
Date: |
Wed, 28 Feb 2007 21:51:38 +0000 |
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.
+
address@hidden
+dnl Attempt to define a macro to just `$#'
+define(underquoted, $#)
+oops)
address@hidden
+underquoted
address@hidden)
address@hidden
address@hidden 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
address@hidden, 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
address@hidden 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.
address@hidden, 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
address@hidden to check equality is not portable.
@comment status: 1
@example
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/01
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/03
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/03
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/05
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/08
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/24
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/28
- Changes to m4/doc/m4.texinfo,v [branch-1_4], Eric Blake, 2007/02/28
- Changes to m4/doc/m4.texinfo,v [branch-1_4],
Eric Blake <=