← Back to index
|
Original Bugzilla link
Bug 5474 – unaryFun byRef is borked for custom parameter name
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-01-22T01:43:00Z
Last change time
2011-04-12T17:29:33Z
Keywords
patch
Assigned to
andrei
Creator
simen.kjaras
Comments
Comment #0
by simen.kjaras — 2011-01-22T01:43:41Z
std.functional.unaryFun fails if byRef is true and parmName != "a". Patch: static if (byRef) { Body!(ElementType).ReturnType result(ElementType)(ref ElementType __a) { mixin("alias __a "~parmName~";"); mixin(Body!(ElementType).code); } }
Comment #1
by dsimcha — 2011-04-12T17:29:33Z
https://github.com/D-Programming-Language/phobos/commit/1578be026e5a8c99036b41e01dafc857205bc2d7