And more generally, for all types that makes sense to convert between, you 
can use the convert function

convert(String, :blah)

(or maybe better, to avoid type instability issues)
convert(ASCIIString, :blah)
convert(UTF8String, :blah)

In 0.4 the default constructor for all types will fallback to convert, so 
for your own types, you usually just need to add a convert definition.

søndag 1. februar 2015 16.29.48 UTC+1 skrev Milan Bouchet-Valat følgende:
>
> Le dimanche 01 février 2015 à 07:18 -0800, Arshak Navruzyan a écrit : 
> > Hello, 
> > 
> > A really basic question how do I turn a symbol into a string ? 
> > 
> > :blah -> "blah" 
> julia> string(:blah) 
> "blah" 
>
> Easy, isn't it? 
>
> Regards 
>

Reply via email to