[Issue 5501] Variant wrongly assumes that an object's length property returns a size_t

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 8 01:22:46 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5501



--- Comment #2 from Nicolas Sicard <dransic at gmail.com> 2013-01-08 01:22:43 PST ---
(In reply to comment #1)
> This is by design. The length name is special and defined to return size_t
> compulsively. A possible solution would be to rename std.datetime.Interval.
> Will cc jmdavis.

I agree. But that makes the length property a quasi-keyword and I think it
should be better documented, even if it is already used as such in practice.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list