2010/1/15 Lluís Batlle <[email protected]>:
> Hello,
>
> let
> a = { x = 1; c = 2;};
> in
> with a;
> if a ? b then b else "b not found"
>
> This ends up in:
> error: undefined variable `b'
>
> I thought it would evaluate to "b not found".
>
> If I use:
> if a ? a.b then b else "b not found"
Here I meant:
if a ? b then a.b else "b not found"
>
> all works.
>
> I'm curious about this behaviour. Can any expert explain a bit about it?
>
> Regards,
> Lluís.
>
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev