summary refs log tree commit diff
path: root/src/libexpr/nixexpr.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-07-06 12:28:57 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-07-06 12:28:57 +0000
commit2b9e29b1c8b6b8e4884a46a3ba71ee795f1f97cd (patch)
tree9b4dd1efce2222e6fdf29ceaaca1f477b77e532b /src/libexpr/nixexpr.cc
parent5580f3817c37135dcc633d84d1360a17a8878a58 (diff)
downloadguix-2b9e29b1c8b6b8e4884a46a3ba71ee795f1f97cd.tar.gz
* Change the right-hand side of the ‘.’ operator from an attribute to
  an attribute path.  This is a refactoring to support default values.

Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r--src/libexpr/nixexpr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc
index 5957618702..2632d9f3ff 100644
--- a/src/libexpr/nixexpr.cc
+++ b/src/libexpr/nixexpr.cc
@@ -43,7 +43,7 @@ void ExprVar::show(std::ostream & str)
 
 void ExprSelect::show(std::ostream & str)
 {
-    str << "(" << *e << ")." << name;
+    str << "(" << *e << ")." << showAttrPath(attrPath);
 }
 
 void ExprOpHasAttr::show(std::ostream & str)