D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2588 - std.signals should not use 'length' stealth keyword in indexing
Summary: std.signals should not use 'length' stealth keyword in indexing
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-16 13:22 UTC by Bill Baxter
Modified: 2014-03-01 00:36 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Bill Baxter 2009-01-16 13:22:05 UTC
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.