Click here to Skip to main content
15,895,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is wrong with this code? Pin
Aescleal23-Jan-11 6:34
Aescleal23-Jan-11 6:34 
GeneralRe: what is wrong with this code? Pin
Adam Roderick J23-Jan-11 19:04
Adam Roderick J23-Jan-11 19:04 
GeneralRe: what is wrong with this code? Pin
PIEBALDconsult24-Jan-11 2:02
mvePIEBALDconsult24-Jan-11 2:02 
AnswerRe: what is wrong with this code? [modified] Pin
Stefan_Lang30-Jan-11 23:54
Stefan_Lang30-Jan-11 23:54 
QuestionRetaining whitespace within macro replacement text Pin
PIEBALDconsult22-Jan-11 4:17
mvePIEBALDconsult22-Jan-11 4:17 
AnswerRe: Retaining whitespace within macro replacement text Pin
Andrew Brock22-Jan-11 4:38
Andrew Brock22-Jan-11 4:38 
GeneralRe: Retaining whitespace within macro replacement text Pin
PIEBALDconsult22-Jan-11 9:00
mvePIEBALDconsult22-Jan-11 9:00 
GeneralRe: Retaining whitespace within macro replacement text Pin
jschell22-Jan-11 12:01
jschell22-Jan-11 12:01 
PIEBALDconsult wrote:
Not a very compelling one, in my opinion.


Macros exist to provide some specific functionality in C and C++. They don't exist to meet every possible known need. Myself I am comfortable with the notion that the authors of those languages and the numerous others who contributed to the ANSI specifications did in fact give due consideration to what it should do an what it shouldn't do. Given the extensive years of scrutiny and use that resulted from that I would suspect that your "compelling one" isn't very.

I am pretty sure that the creators of C and C++ were comfortable with the notion that if someone wanted to create their own language then they should in fact do exactly that.

And there are in fact other macro compilers. I suspect that the following provides quite a bit of functionality. And since one can in fact modify what it does you can do whatever you want with it.

http://www.gnu.org/software/m4/[^]

However, myself would not want to maintain code where someone thought that they needed to use clever tricks via the macro to achieve something. The vast majority of time clever tricks increase the cost of code maintenance.
GeneralRe: Retaining whitespace within macro replacement text Pin
PIEBALDconsult22-Jan-11 18:06
mvePIEBALDconsult22-Jan-11 18:06 
GeneralRe: Retaining whitespace within macro replacement text Pin
jschell23-Jan-11 10:40
jschell23-Jan-11 10:40 
QuestionUnknown problem with non-english languages [modified] Pin
rahul.kulshreshtha21-Jan-11 23:17
rahul.kulshreshtha21-Jan-11 23:17 
AnswerRe: Unknown problem with non-english languages Pin
Andrew Brock21-Jan-11 23:39
Andrew Brock21-Jan-11 23:39 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha21-Jan-11 23:53
rahul.kulshreshtha21-Jan-11 23:53 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 0:38
Andrew Brock22-Jan-11 0:38 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 0:56
rahul.kulshreshtha22-Jan-11 0:56 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 1:21
Andrew Brock22-Jan-11 1:21 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 2:13
rahul.kulshreshtha22-Jan-11 2:13 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 2:39
Andrew Brock22-Jan-11 2:39 
GeneralRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 2:11
mveRichard MacCutchan22-Jan-11 2:11 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 2:27
Andrew Brock22-Jan-11 2:27 
GeneralRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 6:30
mveRichard MacCutchan22-Jan-11 6:30 
AnswerRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 0:02
mveRichard MacCutchan22-Jan-11 0:02 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 0:41
rahul.kulshreshtha22-Jan-11 0:41 
GeneralRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 2:07
mveRichard MacCutchan22-Jan-11 2:07 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 2:19
rahul.kulshreshtha22-Jan-11 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.