Sujet : Re: Block Comments Or Rest-Of-Line Comments?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 21. Mar 2024, 22:16:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uti83u$2ed01$4@dont-email.me>
References : 1 2
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Thu, 21 Mar 2024 13:37:57 +0200, Mikko wrote:
On 2024-03-21 06:19:13 +0000, Lawrence D'Oliveiro said:
gdImageCopyResampled
(
/*dst =*/ ResizedFrame,
/*src =*/ Context.StillFrame, /*dstX =*/ 0,
/*dstY =*/ 0,
/*srcX =*/ 0,
/*srcY =*/ 0,
/*dstW =*/ ResizedFrame->sx, /*dstH =*/ ResizedFrame->sy,
/*srcW =*/ Context.StillFrame->sx,
/*srcH =*/ Context.StillFrame->sy
);
I prefer to put the argument names at the end of the line.
But putting them in front of the values looks more like the syntax in
languages (like Ada and Python) that do allow specification of argument
keywords.
And maybe, in future, if it becomes valid in C (or some successor), then
updating the code should be as simple as removing the comment symbols.