On 5/15/12 19:44 , H. S. Teoh wrote:
actually i just want to do some commandline parsing with default-values like this:On Tue, May 15, 2012 at 07:29:38PM +0200, Christian Köstlin wrote:for [1, 2, 3] and iota(2, 10)?[...]What are you trying to accomplish? T
int main(string[] args) {
auto h = [1, 2, 3];
if (args.length > 1) {
h = iota(1, args[1].to!(int));
}
do_something_with(h);
return 0;
}
