Re: Attn Dennis
- From: "Avatar Zondertau" <avatarzt@xxxxxxxxx (please reply to newsgroup)>
- Date: 27 May 2005 08:23:17 -0700
> Tell me, does this inline documentation import imply that you guys
> have standardized your documentation format in your source code? ie
> Everybody is using some standard format?
I'm not using that in Delphi, but in Java it's quite common that people
use a standardized documentation format, in order to be able to use
JavaDoc. IIRC C# also has a (different) standardized documentation
format.
In Java you normally have something like this (dumb example though):
/**
* This function calculates the sine of the specified number.
*
* @param alpha The number to calculate the sine of. Should be
specified
* in radians.
* @return The sine of alpha is returned.
*/
double sine(double alpha)
{
return Math.sin(alpha);
}
The documentation is now associated to this function and it's
parameters and return value. You can have the same thing for a class,
with different tags.
The generated documentation is in HTML format and looks like this:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html
.
- References:
- Attn Dennis
- From: RandomAccess
- Re: Attn Dennis
- From: Hannes Danzl[NDD]
- Re: Attn Dennis
- From: RandomAccess
- Re: Attn Dennis
- From: Avatar Zondertau
- Re: Attn Dennis
- From: RandomAccess
- Attn Dennis
- Prev by Date: Re: Fastcode MM B&V 0.40
- Next by Date: Re: Attn Dennis
- Previous by thread: Re: Attn Dennis
- Next by thread: Re: Attn Dennis
- Index(es):
Relevant Pages
|