← Back to index
|
Original Bugzilla link
Bug 9049 – std.typecons.Proxy doesn't treat ref parameter correctly.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-20T06:37:00Z
Last change time
2012-11-20T18:31:34Z
Assigned to
nobody
Creator
zan77137
Comments
Comment #0
by zan77137 — 2012-11-20T06:37:34Z
This code doesn't work: ------------------------------------- import std.typecons, std.stdio; struct A { void foo(ref ubyte[] a) { a = [1]; } } struct B { A a; mixin Proxy!a; } void main() { B b; ubyte[] a; b.foo(a); assert(a.length == 1); } -------------------------------------
Comment #1
by github-bugzilla — 2012-11-20T17:11:08Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/a8305d0b21eb459d41d1fd1a062705e8f22408c8
fix Issue 9049 - std.typecons.Proxy doesn't treat ref parameter correctly.
http://d.puremagic.com/issues/show_bug.cgi?id=9049
https://github.com/D-Programming-Language/phobos/commit/04952af5ad6dc5e4e1e54d9064316c08d0f56df6
Merge pull request #963 from shoo/fix9049 fix Issue 9049 - std.typecons.Proxy doesn't treat ref parameter correctly