Make dur a property?

Jonathan M Davis jmdavisProg at gmx.com
Wed Jan 23 10:01:50 PST 2013


On Wednesday, January 23, 2013 18:03:19 monarch_dodra wrote:
> So I thought I'd discuss: Would there be a reason to not make dur
> a property? This should impact no-one, but make ufcs usage that
> much more convenient. Can I get the go-ahead to make and document
> the change?

No. It's not conceptually a property, so it shouldn't be marked with 
@property. It's a factory function.

> What about making things like msecs public aliases? How do you
> feel about that?

We have aliases already. If you don't like dur!"msecs"(100), you can do 
msecs(100). The same with days, minutes, etc.

- Jonathan M Davis


More information about the Digitalmars-d mailing list