Though we could define such a conversion method with:

    convert{T<:AbstractString}(::Type{SubString{T}}, s::AbstractString) = 
let s′ = T(s); SubString(s′, 1, endof(s′)); end

Evan, what is your application here?  What are you trying to do?

Reply via email to