Make dur a property?

Mike Wey mike-wey at example.com
Wed Jan 23 14:25:44 PST 2013


On 01/23/2013 09:33 PM, Jacob Carlborg wrote:
>
> This is how it should look like. Date ranges in Ruby on Rails can be
> really beautiful:
>
> date = 2.days.ago
>
> I think we should have the same in D.

As long as your not using -property:
http://dpaste.dzfl.pl/56960911

-- 
Mike Wey


More information about the Digitalmars-d mailing list