Bug 2588 – std.signals should not use 'length' stealth keyword in indexing
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2009-01-16T13:22:00Z
Last change time
2014-03-01T00:36:09Z
Assigned to
nobody
Creator
wbaxter
Comments
Comment #0 by wbaxter — 2009-01-16T13:22:05Z
Around line 182 this line appears in std.signals:
slots[slots_idx + 1 .. length] = null;
This should be changed to:
slots[slots_idx + 1 .. $] = null;
Or it will fail to compile when Signal is mixed into any class that defines a .length member.
Oh, and that usage of 'length' should be killed entirely because it's just a bad idea, as has been discussed before.