On Tuesday, January 13, 2015 at 2:50:34 PM UTC-5, Evan Pu wrote:
>
> what is the convention? I kept getting
> `convert` has no method matching convert(::Type{SubString(UTF8String)}}, 
> ::ASCIIString)
> all the time, every time
>

What are you doing that triggers this error?   I'm guessing that you have 
an array A of substrings (a special string type that represents a portion 
of another string; e.g. this is used for regular expression matches) and 
you are trying to assign an ordinary string to A[i].  This fails because 
there is (currently) no conversion method defined from other string types 
to substrings.

If you want to make your array A able to hold arbitrary strings, not just 
substrings, you should give it a type that can hold arbitrary strings.   
e.g. if you are using a comprehension to define A, you could give it a type 
A = String[....] to say that A can hold arbitrary string objects.

Reply via email to