Bug 4999 – Add Kenji Hara's adaptTo() to Phobos

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-10-06T08:06:00Z
Last change time
2014-04-29T15:47:33Z
Keywords
pull
Assigned to
k.hara.pg
Creator
andrei

Comments

Comment #0 by andrei — 2010-10-06T08:06:50Z
http://github.com/9rnsr/scrap/blob/master/interfaces/interfaces.d See also discussion "LazyInterface (simplified Boost.Interfaces)" on digitalmars.d.
Comment #1 by andrej.mitrovich — 2013-02-09T09:06:20Z
Comment #2 by andrei — 2013-03-31T09:07:47Z
I think we should move forward with this. Kenji, could you please convert this to a pull request? Let's review it there. I'll assign this bug to you, hope you don't mind. We should definitely change adaptTo to a more marketable name. I think structuralCast should do better.
Comment #3 by k.hara.pg — 2013-04-19T03:45:38Z
Sorry for my late correspondence. I opened a pull request for this. https://github.com/D-Programming-Language/phobos/pull/1265
Comment #4 by github-bugzilla — 2013-06-01T21:41:59Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/8b390ae6c4650cd9d34098eac33e88b8b1efe266 fix Issue 4999 - Add Kenji Hara's adaptTo() to Phobos Add structuralCast and structuralDownCast in std.typecons https://github.com/D-Programming-Language/phobos/commit/cee7de0103b77de7b36067486a71f45d5c21f78e Merge pull request #1265 from 9rnsr/structuralCast Issue 4999 - Add Kenji Hara's adaptTo() to Phobos