[Swift-devel] int to string

Mihael Hategan hategan at mcs.anl.gov
Mon Aug 8 21:52:54 CDT 2011


On Mon, 2011-08-08 at 21:44 -0500, Ketan Maheshwari wrote:
> Hello,
> 
> 
> I was wondering if we can convert an int to string in Swift. I think
> @tostr method doesn't exist.

Strcat will do implicit conversion of its arguments to string. So
@strcat(2) should work.

Though we should have @tostr.






More information about the Swift-devel mailing list