September 16, 2014 [Issue 9959] Add functional pattern matching for object references | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9959 --- Comment #2 from github-bugzilla@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/cf1aa96bc443eea5a7067d9066a6033c3b424fd8 fix issue 9959 - Add functional pattern matching for object references Add the function std.algorithm.castSwitch, which chooses a delegate based on the class of an object and run that delegate with that object. https://github.com/D-Programming-Language/phobos/commit/575b4aec7f2e901056548dc209f3d15951714c05 Merge pull request #1266 from idanarye/add-functional-pattern-matching-for-object-references fix issue 9959 - Add functional pattern matching for object references -- |
Copyright © 1999-2021 by the D Language Foundation