Bug 13659 – Executing a linked function from a mixin reduces scope

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2014-10-26T04:18:00Z
Last change time
2015-06-09T05:15:02Z
Assigned to
nobody
Creator
rares.pop

Comments

Comment #0 by rares.pop — 2014-10-26T04:18:00Z
This is what lead to this bug report: http://forum.dlang.org/thread/[email protected]?page=2#post-lmdoubytkprobjkhrooc:40forum.dlang.org When executing a linked (external library) function from a string mixin statement the behaviour is different than when the function is from the same library (app). Invoking the external library function looses the "instantiation scope" of the mixin which is the bug I am reporting. The code is here: https://github.com/fusionbeam/infuse
Comment #1 by rares.pop — 2014-10-26T04:18:59Z
ldc2 exhibit the same behaviour.
Comment #2 by rares.pop — 2014-10-26T07:24:14Z
never mind. it was the nested mixin that was causing scope degradation.