http://d.puremagic.com/issues/show_bug.cgi?id=3081
--- Comment #2 from Jarrett Billingsley <jarrett.billings...@gmail.com> 2009-06-19 10:21:55 PDT --- (In reply to comment #1) > To whom it may concern: would an "I told you so" dance here be appropriate? > ;) > > String mixins are cute, but we need actual macros to be able to do things like > this more generally. For those interested, the cause really _is_ because Foo is defined in a different module. The unaryFun template fails because ElementType.stringof yields "Foo", which isn't visible to std.functional. Even if it could compile the lambda func, the "alias typeof(mixin(testAsExpression))" line still fails because again, Foo is not accessible. That it uses ElementType.stringof also means that it will fail for just about anything other than the builtin types. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------