Increment / Decrement Operator Behavior

Kevin Cox kevincox.ca at gmail.com
Mon Jun 4 18:17:29 PDT 2012


On Jun 4, 2012 8:43 PM, "Xinok" <xinok at live.com> wrote:
>
> I wonder in that case, is it even worth including in the language? For me
anyways, the whole point of these operators is to use them in expressions.
Otherwise, why not simply write (i+=1)?

For pointers they are useful because they go up in units not bytes
(although addition often does too).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120604/657641fd/attachment.html>


More information about the Digitalmars-d mailing list