[Nix-dev] Re: ${out}

Jeff Johnson n3npq at mac.com
Sun Apr 11 16:44:00 CEST 2010


On Apr 11, 2010, at 9:40 AM, Marc Weber wrote:

> Hi Yury!
> 
> derivation {
>  a = "${b}";
>  b = "${a}";
> }
> 
> what should be the result?

The result should be infinite recursion and an
interpreter "hang" with a naive implementation,
or an error message and FULLSTOP (or better, an exception)
during run-time evaluation with a correct implementation.

> So I'd limit this to replacing $out only.
> 

The problem of infinite recursion can/will reappear
no matter value ${out} has, as its intrinsic to lazy evaluation.

73 de Jeff



More information about the nix-dev mailing list