473,378 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Code Comment

Hello

Is there an option in the Code Comment Tool, so that the values of constants
are automatically commented? Or must I comment them manually?

Thanks
- Andy
Nov 15 '05 #1
6 1407
Andy,

You must comment them manually.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andy" <sp**@bluewin.ch> wrote in message
news:10***************@fuchs.cyberlink.ch...
Hello

Is there an option in the Code Comment Tool, so that the values of constants are automatically commented? Or must I comment them manually?

Thanks
- Andy

Nov 15 '05 #2
Hi Andy,

There is no such tool.
Why would you want to comment constant value?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Andy" <sp**@bluewin.ch> wrote in message
news:10***************@fuchs.cyberlink.ch...
Hello

Is there an option in the Code Comment Tool, so that the values of constants are automatically commented? Or must I comment them manually?

Thanks
- Andy

Nov 15 '05 #3
<"Miha Markic" <miha at rthand com>> wrote:
There is no such tool.
Why would you want to comment constant value?


To explain exactly what it's the constant of, presumably - the same way
Double.MinValue, Double.NaN etc are commented. Why would you *not* want
to comment constant values?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4
I think if we go back to the original post -
Is there an option in the Code Comment Tool, so that the values of constants are automatically commented?

the real question is HOW will a tool AUTOMATICALLY generate comments for
constants?
If you find a tool that will read my mind and write code, i'm in! :-)

-Rob Teixeira [MVP]

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... <"Miha Markic" <miha at rthand com>> wrote:
There is no such tool.
Why would you want to comment constant value?


To explain exactly what it's the constant of, presumably - the same way
Double.MinValue, Double.NaN etc are commented. Why would you *not* want
to comment constant values?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 15 '05 #5
<"Rob Teixeira [MVP]" <RobTeixeira@@msn.com>> wrote:
I think if we go back to the original post -
Is there an option in the Code Comment Tool, so that the values of constants are automatically commented?


the real question is HOW will a tool AUTOMATICALLY generate comments for
constants?
If you find a tool that will read my mind and write code, i'm in! :-)


Oh I have no problem with *that* being impossible, but that's not what
Miha asked.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #6
Ah yes, actually Rob got my intention while my question was bad-formed.
Yes, I was acutally wondering why would you automatically comment ....
Sorry, for misleading you.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
<"Rob Teixeira [MVP]" <RobTeixeira@@msn.com>> wrote:
I think if we go back to the original post -
>> Is there an option in the Code Comment Tool, so that the values of

constants
>> are automatically commented?


the real question is HOW will a tool AUTOMATICALLY generate comments for
constants?
If you find a tool that will read my mind and write code, i'm in! :-)


Oh I have no problem with *that* being impossible, but that's not what
Miha asked.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Xah Lee | last post by:
is there a syntax to comment out a block of code? i.e. like html's <!-- comment --> or perhaps put a marker so that all lines from there on are ignored? thanks. Xah xah@xahlee.org...
4
by: Ravi Uday | last post by:
Hi, This code finds the number of non-commented lines in a given source file. Works fine except for one condition that i found. If the Input file is of the below kind : #include<xyz.h>/* declare...
46
by: Profetas | last post by:
Hi, I know that this is off topic. but I didn't know where to post. Do you comment your source code while coding or after coding. for example: you write a procedure and after it is...
18
by: __frank__ | last post by:
The following code use a macro and a label. I would to change it and use instead a more readable function and avoid the label. The macro DAQmxFailed checks for the return code of the various...
192
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
1
by: Neo Geshel | last post by:
I am having conflicting results with two pieces of identical code. One is an insert, the other is an update to a db. The first code, which works, is this: Sub Add3_Click(sender As Object, e As...
17
by: Mark | last post by:
I must create a routine that finds tokens in small, arbitrary VB code snippets. For example, it might have to find all occurrences of {Formula} I was thinking that using regular expressions...
0
by: peridian | last post by:
Hi, I wanted a web page where I could post code to, and have it appear in coloured formatting based on the context of the code. Most of the techniques I have seen for this involve complex use...
61
by: arnuld | last post by:
I have created a program which creates and renames files. I have described everything in comments. All I have is the cod-duplication. function like fopen, sprint and fwrite are being called again...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.