× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 15/12/2009, at 9:57 AM, Evan Harris wrote:

Over the years I've run into a fair amount of code containing comments like
/*CR1234*/

So have I but there's usually a leading space before the /*. Refer to my last example which had no space before OR after the /*


My take is that people will usually write descriptive comments with a space

By which I presume you mean a space between the /* and the first word of the comment ...


but a change reference or other notation of some kind might not get the same
treatment.


Accepted, but again usually has a leading space before the /* even if it doesn't have one after it. You only need a space EITHER before or after the /* to distinguish a comment from a special value. It's only when neither of those are present that misinterpretation could occur. However, I did say that some coding styles could break whatever "rules" are presumed by the parser.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.