Should the comma operator be removed in D2?
Robert Jacques
sandford at jhu.edu
Wed Nov 18 15:38:25 PST 2009
On Wed, 18 Nov 2009 15:01:10 -0500, Stewart Gordon <smjg_1998 at yahoo.com>
wrote:
> Robert Jacques wrote:
> <snip>
>> However, I imagine tuple(a++,b++) would have some overhead, which is
>> exactly what someone is trying to avoid by using custom for loops.
> <snip>
>
> Even if tuples do have an overhead, it would be a naive compiler that
> generates it in cases where nothing is done with it.
>
> Stewart.
Actually, as the current compiler knows nothing about tuples, I'd have to
call it very naive with respect to tuple optimization. :)
More information about the Digitalmars-d
mailing list