It probably doesn't work because macros and comments are both part of the preprocessor. IOW the comments have already been filtered when the macros are processed.
You can always use an external preprocessor
thank you for the reply. The lack of C style comments are definitely not worth dealing with a preprocessor (which is quite often brutally abused.)
if you want to actually see C constructs in code I think you are better programming in C than trying to force Pascal to look like C. Pascal does not look like C (except for a few borrowed symbols like += and >>).
I'm not trying to make Pascal look like C. Actually, I am not fond of C at all but, the language does have a few nice features (the /* */ are not such "nice features", just something I got used to.)
One nice feature I do miss from C, is defining initialized arrays without having to specify the element count. I wish the compiler counted the elements for me and I could just use low and high (just as with Dynamic arrays) to access them. If such arrays where automatically considered to be static arrays when they are initialized, the compiler already has 99% of the code to implement them, all it has to do is internally establish the range to be from 0 to element count - 1.
It's no big deal to count the elements but, it would be nice if the compiler did it. There are plenty more things in Pascal that I wish C had than vice versa.
Thank you for the information you offered.
Peace.