The Art of Macro Declaration
1
Name:
Donald Knuth
2008-02-12 18:31
#define CAPITAL(macro) ...
or
#define LOWERCASE(macro) ...
Please help me decide /prog/ . I will cite you in The Art of Macro Declaration due out Q1 2058.
2
Name:
Anonymous
2008-02-12 18:37
Umm, did you perhaps mean:
#define lowercase(macro) ...
???
3
Name:
Anonymous
2008-02-12 18:38
>>2
Indeed. Thank you. Give me your address so I can send you the cheque.
4
Name:
Anonymous
2008-02-12 18:39
5
Name:
Anonymous
2008-02-12 18:40
6
Name:
Anonymous
2008-02-12 18:48
>>1
lowercase if `macro' is evaluated only once.
UPPERCASE if it's evaluated more than once.
#define MAX(x, y) ((x)>(y)? (x) : (y))
#define inc(x) ((x)+1)
7
Name:
Anonymous
2008-02-12 18:48
UPPERCASE ftw
8
Name:
Anonymous
2008-02-12 18:53
>>6
thats confusing as fuck
9
Name:
Anonymous
2008-02-12 18:54
10
Name:
Anonymous
2008-02-12 19:00
i'm the faggot that doesnt read comp.lang.c faggot
11
Name:
Anonymous
2008-02-12 19:08
It doesn't matter. The reader always uppercases symbols (at least it's the default from the standard).
12
Name:
Anonymous
2008-02-13 4:29
Am I the only one that's scared that Knuth'll pass out before he will have had the chance to complete his tAoCP?
13
Name:
Anonymous
2008-02-13 5:34
14
Name:
Anonymous
2008-02-13 5:40
15
Name:
Anonymous
2008-02-13 5:48
>>12
He'll never finish it
16
Name:
Anonymous
2008-02-13 6:06
17
Name:
Anonymous
2008-02-13 12:47
>>15
and he doesn't have any offspring ;_;
18
Name:
Donald Knuth Jr.
2008-02-13 13:06
>>17
Incorrect. I am his
EXPERTPROGRAMMING offspring.
19
Name:
Anonymous
2009-03-06 10:04
The online documentation at gcc gnu org.
20
Name:
Trollbot9000
2009-07-01 9:07
Offspring.
21
Name:
Anonymous
2010-11-02 10:50