Resolve account.date to latest post in the account

This commit is contained in:
John Wiegley 2012-08-09 16:56:53 -05:00
parent e716995311
commit 97693b43b5

View file

@ -380,7 +380,9 @@ expr_t::ptr_op_t account_t::lookup(const symbol_t::kind_t kind,
break;
case 'd':
if (fn_name == "depth")
if (fn_name == "date")
return WRAP_FUNCTOR(get_wrapper<&get_latest>);
else if (fn_name == "depth")
return WRAP_FUNCTOR(get_wrapper<&get_depth>);
else if (fn_name == "depth_spacer")
return WRAP_FUNCTOR(get_wrapper<&get_depth_spacer>);