Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decodeXML does not compile when given a range of type char[] #23

Closed
BitterlyIronic opened this issue Feb 29, 2020 · 2 comments
Closed
Labels
0.4.2 bug Something isn't working

Comments

@BitterlyIronic
Copy link

import std.stdio: writeln;
import dxml.util;

char[] str;

str ~= "hello";

str.decodeXML.writeln;

The above code fails to compile with Error: cannot implicitly convert expression range of type char[] to string. Tested with DMD 2.090.1 on Windows.

wchar[], dchar[], string, wstring, and dstring all work as expected.

@jmdavis jmdavis added the bug Something isn't working label Mar 9, 2020
@jmdavis
Copy link
Owner

jmdavis commented Mar 9, 2020

It looks like adding char[] to the list of types tested triggers several bugs - in this particular case due to code that's specific to arrays of char only having been tested with string. So, I'll need to work my way through them.

@jmdavis
Copy link
Owner

jmdavis commented Jun 6, 2020

Sorry for the delay. 0.4.2 should fix the problem.

@jmdavis jmdavis closed this as completed Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.4.2 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants