[Swift-devel] get an @arg as an int.

Ben Clifford benc at hawaga.org.uk
Wed Feb 27 03:45:25 CST 2008


I want to make my load tests take the number of procedures to run as a 
commandline @arg.

So I want to iterate over [1:@arg(foo)] or something like that.

But @arg(...) has type string.

I have a straightforward implementation of @toint(string) that fixes this.

I am however slightly concerned about a lack of coherency in what can be 
cast to what / what can be read from a file / the forms those things take 
(eg. @extractint, readdata, @toint)

-- 



More information about the Swift-devel mailing list