[julia-users] Re: Why does string('a') work but convert(ASCIIString,'a') does not?

2015-01-07 Thread Ivar Nesje
I can't see any argument for why it would be wrong to add the requested method. Please open an issue (or better yet a Pull request) on github, so that we can have more opinions on the matter. The implementation could be as simple as *convert{T:AbstractString}(::Type{T}, c::Char) = convert(T,

[julia-users] Re: Why does string('a') work but convert(ASCIIString,'a') does not?

2015-01-06 Thread elextr
On Wednesday, January 7, 2015 10:51:54 AM UTC+10, Ronald L. Rivest wrote: Using Julia 0.3.4. The following seems somehow inconsistent. Is there something about the philosophy of `convert` I am missing?? *julia convert(ASCIIString,'a')* *ERROR: `convert` has no method matching