Skip to content

Conversation

mihails-strasuns
Copy link

Because of range-ification of some Phobos functions
implicit convertion of DirEntry to string does not
work anymore.

Looks like this won't be considered regression, thus submitting the fixup.

Because of range-ification of some Phobos functions
implicit convertion of DirEntry to string does not
work anymore.
@mihails-strasuns
Copy link
Author

(dlang/phobos#3261 (comment))

s-ludwig added a commit that referenced this pull request Jun 21, 2015
Fix compilation failure on DMD/Phobos master
@s-ludwig s-ludwig merged commit f1306ba into dlang:master Jun 21, 2015
@s-ludwig
Copy link
Member

Interesting. I wonder if alias this shouldn't cause the range predicate of globMatch to match anyway...

@mihails-strasuns
Copy link
Author

I think the way isNarrowString!T and friends are defined right now, alias this is completely ignored. Not sure about it but feels most likely explanation

@s-ludwig
Copy link
Member

Just hat a look and isForwardRange is the offender: It checks if is(typeof(T.save) == T). To make alias this work, it would have to do something weaker, such as is(T : typeof(T.save)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants