Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/make

On Wed, Jun 09, 2010 at 12:58:23PM -0400, Christos Zoulas wrote:
> Log Message:
> Explain variable expansion better. Requested by Aleksey Cheusov

This is wrong. Loop variables are not exapnded on each loop iteration.
Each loop iteration effectively creates a new variable. The rest of his
confusion comes from two simple facts:
(1) += is lazy in bmake. This is different from FreeBSD, where it forces
(2) The evaluation of j is lazy as well. That's why he sees the last
loop iteration.

Therefore I don't agree with the content and it is actually making
things a lot more complicated than necessary.


Home | Main Index | Thread Index | Old Index