[Issue 8617] std.typecons.Proxy.opEquals compiles error: undefined identifier 'startsWith'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 4 01:16:07 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8617


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-04 01:16:44 PDT ---
It works in std.typecons, because std.typecons imports std.algorithm. Your
module doesn't, and you're mixing Proxy into your module, so it needs to import
std.algorithm. This is _not_ a compiler bug.

Now that we have local imports, Proxy can have the import for std.algorithm
internally, so that should probably be added. But previously, there was no way
to have Proxy import what it needed, and you'd have to import it in whatever
module you mixed it into. But fortunately, that's now fixable.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list