[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 11 May 2015 12:08:46 +0200 (CEST)
has someone ever written a `safe define' macro that makes the defined
macro expands to itself if called without any argument?
foo => foo
foo() => bar
I tried the following, and I failed (due to lack of experience
w.r.t. quoting tricks, I think) – I have difficulties to delay the
expansion of `$#'...
Below, I've marked the problematic spots with (nonexisting)
- safe define,
Werner LEMBERG <=