Bug 5876 – std.container doesn't work with delegates

Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-04-23T12:47:00Z
Last change time
2012-02-05T16:02:40Z
Assigned to
nobody
Creator
necroment

Comments

Comment #0 by necroment — 2011-04-23T12:47:02Z
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 by bugzilla — 2012-02-05T16:02:40Z
It's working for 2.058 (after SLIst => SList fix).