On Tue, 25 Jan 2005 13:53:51 +1100, "David Fisher" <da***@hsa.com.au>
wrote:
Morgan asked:
I'd like to add some detailed tutorial to my comments about the usage of
the code. The tutoril includes some URI like "./ABC/CDE/*". The compiler
thinks that I am using "/*" in "/* */" and doesn't pass.
Is there any solution to add "/*" in "/* */" comments?
Is there any reason not to use "//" comments ? Example:
// The files match the pattern ./ABC/DEF/*
That works for single line comments, but detailed tutorials can be a little
cumbersome. The "#if 0" or "/*" are normally preferred for multi-line, as
they are much easier to work with (especially with word-wrap enabled, as on
most newsreaders.)
As for the OP, GCC 3.4.3 compiles "./ABC/CDE/*" without problem, aside from
an optional warning. It only becomes an issue if you try something fancy
like "/dev/*/*".