Case Range Statement ..
Walter Bright
newshound1 at digitalmars.com
Thu Jul 9 19:51:53 PDT 2009
BCS wrote:
> Hello Walter,
>
>>>> It's handy for things like rewriting ++e so it can be used more than
>>>> once but is only evaluated once:
>>>>
>> (tmp = ++e, tmp)
>>
>>> Uh? How is that different from "++e"
>>>
>> You can then use tmp more than once with only one increment of e.
>>
>
> how does that differ from using ++e the first time and then e for the
> other times?
1. e may be a global
2. ++e may be a more complicated expression with side effects
More information about the Digitalmars-d
mailing list