D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5876 - std.container doesn't work with delegates
Summary: std.container doesn't work with delegates
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other All
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-23 12:47 UTC by Max Klyga
Modified: 2012-02-05 16:02 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 Max Klyga 2011-04-23 12:47:02 UTC
This commit made pointsTo not accept delegates as valid arguments, due to Issue 5875.

https://github.com/D-Programming-Language/phobos/commit/0339b6acdeb74ff28cfa2ec30ec5a192709e8695#std/exception.d

This change broke code that used std.container.SList or std.container.Array with delegates as elements.

-----------------
import std.container;

void main() {
    SLIst!(void function()) foo; // works
    SList!(void delegate()) bar; // used to work
}
Comment 1 Walter Bright 2012-02-05 16:02:40 UTC
It's working for 2.058 (after SLIst => SList fix).