[Issue 7802] UFCS functions get lost when type is transmitted to template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 4 11:11:11 PDT 2012


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



--- Comment #6 from dawg at dawgfoto.de 2012-04-04 11:11:46 PDT ---
>look it up from two scopes -- the template definition scope (i.e. bar.d) and the scope where S is defined (i.e. foo.d).

I thought this too, although the need to extend unknown types
at the template scope will be limited.

There is one important use-case where this fails though.
Extending library types so that they fit a library template, e.g.
to use std.stream.Stream with std.algorithm.find I need to modify
phobos.

-- 
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